Skip to main content
POST
Create or update the schedule for a campaign. Setting a schedule automatically updates the campaign status.

Path Parameters

  • campaign_id (integer, required): The unique identifier of the campaign

Request Body

Schedule Types

Campaign starts when you call the start endpoint.
Request
Effect: Campaign status remains draft until started manually.
Campaign runs at a specific date and time.
Request
Effect: Campaign status changes to scheduled automatically.
Campaign runs on a repeating schedule.
Request
Effect: Campaign status changes to scheduled automatically.

Recurring Config Options

Response

Response

Example Code

cURL
Python
JavaScript

Behavior

  • Immediate: Clears any existing schedule, reverts to draft if scheduled
  • Scheduled/Recurring: Creates schedule record, sets campaign to scheduled
  • Past times: Returns 400 error - time must be in the future

Error Responses

Timezone Support

Common timezone values:
Always specify timezone when scheduling. If omitted, the system uses UTC which may not match your intended local time.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaign_id
integer
required

Body

application/json

The body is of type Schedule Data · object.

Response

Successful Response