Campaigns
Schedule a campaign state change
Schedules the specified campaign version for a future state transition (e.g. go-live or end) at the datetime specified in the request body. The campaign must be published before it can be scheduled. Replaces any existing schedule on the same campaign version.
post/v2/campaigns/{campaignId}{version}/schedule
Request
- Base URLhttps://api.extole.io
- Auth
- API key in header Authorization
- or API key in query parameter access_token
- or API key in cookie extole_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
campaignIdstring required
versionstring required
Request body
Example request
{
"end_date": "2025-10-24T02:00:00-07:00",
"pause_date": "2025-10-24T02:00:00-07:00",
"start_date": "2025-10-24T02:00:00-07:00",
"stop_date": "2025-10-24T02:00:00-07:00"
}Response
Successful response
Example response
{
"components": [
{
"created_date": "2025-10-24T02:00:00-07:00",
"display_name": "handlebars@buildtime:{{displayName}}",
"install": "handlebars@installtime:{{install}}",
"updated_date": "2025-10-24T02:00:00-07:00",
"variables": [
{
"description": "handlebars@buildtime:{{description}}",
"priority": "10",
"values": {
"default": "handlebars@buildtime:{{default}}",
"en": "handlebars@buildtime:{{en}}"
}
}
]
}
],
"end_date": "2025-10-24T02:00:00-07:00",
"flow_steps": [
{
"apps": [
{
"description": "handlebars@buildtime:{{description}}",
"name": "handlebars@buildtime:{{name}}",
"type": {
"name": "handlebars@buildtime:{{name}}"
}
}
],
"description": "handlebars@buildtime:{{description}}",
"flow_path": "handlebars@buildtime:{{flowPath}}",
"icon_color": "handlebars@buildtime:{{iconColor}}",
"icon_type": "handlebars@buildtime:{{iconType}}",
"metrics": [
{
"description": "handlebars@buildtime:{{description}}",
"expression": "handlebars@buildtime:{{expression}}",
"name": "handlebars@buildtime:{{name}}",
"tags": "handlebars@buildtime:{{tags}}",
"unit": "handlebars@buildtime:{{unit}}"
}
],
"name": "handlebars@buildtime:{{name}}",
"sequence": "handlebars@buildtime:{{sequence}}",
"step_name": "handlebars@buildtime:{{stepName}}",
"tags": "handlebars@buildtime:{{tags}}",
"words": {
"person_counting_name": "handlebars@buildtime:{{personCountingName}}",
"plural_noun_name": "handlebars@buildtime:{{pluralNounName}}",
"rate_name": "handlebars@buildtime:{{rateName}}",
"singular_noun_name": "handlebars@buildtime:{{singularNounName}}",
"verb_name": "handlebars@buildtime:{{verbName}}"
}
}
],
"last_published_date": "2025-10-24T02:00:00-07:00",
"pause_date": "2025-10-24T02:00:00-07:00",
"start_date": "2025-10-24T02:00:00-07:00",
"steps": [
{
"created_date": "2025-10-24T02:00:00-07:00",
"data": [
{
"default_value": "handlebars@buildtime:{{defaultValue}}",
"dimension": "handlebars@buildtime:{{dimension}}",
"enabled": "handlebars@buildtime:{{enabled}}",
"key_type": "handlebars@buildtime:{{keyType}}",
"name": "handlebars@buildtime:{{name}}",
"persist_types": "handlebars@buildtime:{{persistTypes}}",
"scope": "handlebars@buildtime:{{scope}}",
"value": "handlebars@buildtime:{{value}}"
}
],
"enabled": "handlebars@buildtime:{{enabled}}",
"step_builder": "handlebars@buildtime:{{stepBuilder}}",
"triggers": [
{
"enabled": "handlebars@buildtime:{{enabled}}",
"negated": "handlebars@buildtime:{{negated}}",
"parent_trigger_group_name": "handlebars@buildtime:{{parentTriggerGroupName}}",
"trigger_description": "handlebars@buildtime:{{triggerDescription}}",
"trigger_name": "handlebars@buildtime:{{triggerName}}",
"trigger_phase": "handlebars@buildtime:{{triggerPhase}}"
}
],
"updated_date": "2025-10-24T02:00:00-07:00",
"actions": [
{
"enabled": "handlebars@buildtime:{{enabled}}",
"reward_tags": "handlebars@buildtime:{{rewardTags}}"
}
],
"aliases": "handlebars@buildtime:{{aliases}}",
"enabled_on_states": "handlebars@buildtime:{{enabledOnStates}}",
"journey_names": "handlebars@buildtime:{{journeyNames}}",
"name": "handlebars@buildtime:{{name}}",
"scope": "handlebars@buildtime:{{scope}}",
"selectors": "handlebars@buildtime:{{selectors}}",
"send_policy": "handlebars@buildtime:{{sendPolicy}}"
}
],
"stop_date": "2025-10-24T02:00:00-07:00",
"updated_date": "2025-10-24T02:00:00-07:00",
"variant_selector": "handlebars@buildtime:{{variantSelector}}",
"variants": "handlebars@buildtime:{{variants}}"
}Changes
No recorded changes to this operation across all 1 revision of this API.