Skip to content

Workflow Yearly Schedule Triggers

Valid Attributes

AttributeDescriptionDetails
account_idID of the account that the yearly schedule trigger belongs toCannot be set manually.
day_of_monthDay of the month when the workflow should triggerMust be set. Integer between 1 and 31.
hour_of_dayHour at which the workflow should trigger on the scheduled dayMust be set. Integer between 0 and 23. Timezone: UTC
monthThe month at which the workflow should triggerMust be set. Integer between 1 and 12.

Create

Example request:

{
"data": {
"type": "workflow_yearly_schedule_trigger",
"attributes": {
"day_of_month": 15,
"hour_of_day": 10,
"month": 1
}
}
}

Example response:

{
"data": {
"id": "1324983d-3428-4574-bd06-1507c1caa00f",
"type": "workflow_yearly_schedule_trigger",
"attributes": {
"account_id": "fe578719-5ab8-461c-82cb-e8e483a921d2",
"day_of_month": 15,
"hour_of_day": 10,
"month": 1
}
}
}

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

HTTP Request

POST /api/v1/workflows/:workflow_id/yearly_schedule_triggers

URL Parameters

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

Update

Example request:

{
"data": {
"type": "workflow_yearly_schedule_trigger",
"attributes": {
"day_of_month": 15,
"hour_of_day": 10,
"month": 12
}
}
}

Example response:

{
"data": {
"id": "1324983d-3428-4574-bd06-1507c1caa00f",
"type": "workflow_yearly_schedule_trigger",
"attributes": {
"account_id": "fe578719-5ab8-461c-82cb-e8e483a921d2",
"day_of_month": 15,
"hour_of_day": 10,
"month": 12
}
}
}

This endpoint updates a yearly 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/yearly_schedule_triggers/:yearly_schedule_trigger_id

URL Parameters

ParameterDescription
yearly_schedule_trigger_idThe ID of the yearly schedule trigger to update
workflow_idThe ID of the workflow that the trigger belongs to