Skip to content

Workflow Daily Schedule Triggers

Valid Attributes

AttributeDescriptionDetails
account_idID of the account that the daily schedule trigger belongs toCannot be set manually.
hour_of_dayHour at which the workflow should trigger each dayMust be set. Integer between 0 and 23. Timezone: UTC

Create

Example request:

{
"data": {
"type": "workflow_daily_schedule_trigger",
"attributes": {
"hour_of_day": 10
}
}
}

Example response:

{
"data": {
"id": "ad21caa3-c798-4be2-8af4-019fec9b21be",
"type": "workflow_daily_schedule_trigger",
"attributes": {
"account_id": "c2546da1-e5ef-4f31-a205-9539c45805d2",
"hour_of_day": 10
}
}
}

This endpoint adds a new daily schedule trigger to a workflow.

HTTP Request

POST /api/v1/workflows/:workflow_id/daily_schedule_triggers

URL Parameters

ParameterDescription
workflow_idThe ID of the workflow that the trigger will be added to

Update

Example request:

{
"data": {
"type": "workflow_daily_schedule_trigger",
"attributes": {
"hour_of_day": 12
}
}
}

Example response:

{
"data": {
"id": "ad21caa3-c798-4be2-8af4-019fec9b21be",
"type": "workflow_daily_schedule_trigger",
"attributes": {
"account_id": "c2546da1-e5ef-4f31-a205-9539c45805d2",
"hour_of_day": 12
}
}
}

This endpoint updates a daily schedule trigger of a workflow. The trigger can only be modified when the workflow does not have any connected actions.

HTTP Request

PUT /api/v1/workflows/:workflow_id/daily_schedule_triggers/:daily_schedule_trigger_id

URL Parameters

ParameterDescription
daily_schedule_trigger_idThe ID of the daily schedule trigger to update
workflow_idThe ID of the workflow that the trigger belongs to