cdp_create_schedule
Create automated schedules for CDP workflows, campaigns, and reports by defining timing parameters and resource references in JSON format.
Instructions
Create a new schedule row in config/schedules. body is a JSON string of the schedule body. Canonical shape (from ui-core ScheduleService.save):
{
"type": "WORKFLOW",
"referenceId": <numeric workflow.id from GET config/workflows/{name}>,
"entityType": "connector" | "campaign" | "report" | "exportDef" | ...,
"entityId": ,
"scheduleName": "Schedule-",
"active": true,
"period": "HOURS" | "DAYS" | "WEEKS" | "MONTHS" | "MINUTES",
"frequency": 1,
"startTime": "00:00",
"startTimestamp": "YYYY-MM-DDTHH:mm",
"timeZone": "America/New_York",
"jobData": {"campaignProperties": "{}"} // optional, workflow-specific
}
After creating the row, call cdp_invoke_workflow_action with action='schedule' and the returned scheduleId to arm it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| tenant_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |