Campaigns

Schedule campaign run

Schedule a run for later.

The run waits to be launched.

Path Parameters

id*string

A UUID; anything else is 400 invalid_id.

Formatuuid

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

Request Body

application/json
  1. body
run_type?string
Default"single"
Value in"single""recurring"
scheduled_at?string

Defaults to now; may not be in the past.

Formatdate-time
timezone?string
frequency?string

Required for a recurring run.

Value in"daily""weekly""monthly"
end_date?string

Required for a recurring run.

Formatdate-time
curl -X POST 'https://v3.ghala.io/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "campaign_id": "78614b6c-fe7c-41e2-8e25-c9b3a3c91904",  "run_type": "single",  "frequency": "daily",  "timezone": "string",  "scheduled_at": "2019-08-24T14:15:22Z",  "end_date": "2019-08-24T14:15:22Z",  "recurrence_group_id": "f3819c9e-b1af-4bb4-acc6-8230173e0108",  "recurrence_index": 0,  "status": "ready",  "recipient_count": 0,  "sent_count": 0,  "failed_count": 0,  "delivered_count": 0,  "total_parts": 0,  "retry_of_run_id": "9fc703b4-8839-4a3c-a90d-e3891befee83",  "error": "string",  "started_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z"}