POST
/
campaigns
/
{campaign_id}
/
schedule
curl --request POST \
  --url https://api.charp.ai/campaigns/{campaign_id}/schedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z"
}'
{
  "campaign_id": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using OAuth2 access token

Path Parameters

campaign_id
string
required

Unique identifier of the campaign

Body

application/json
Campaign schedule details
start_time
string
required

Scheduled start time for the campaign

end_time
string
required

Scheduled end time for the campaign

Response

200
application/json
Campaign schedule set successfully
campaign_id
string
required

ID of the campaign

status
string
required

Result of the operation (e.g., started, stopped)