Skip to content

Workflow Triggers

List of valid attributes:

AttributeDescriptionSpecifics
created_atTimestamp of creationCannot be set
discarded_atNull or timestamp of removalCannot be set
trigger_idThe ID of the specific trigger that this trigger refers toCannot be set
trigger_typeThe specific type of trigger that this trigger refers toCannot be set
updated_atTimestamp of the latest updateCannot be set
workflow_idThe ID of the workflow that this trigger belongs toCannot be set

The following relationships can be included in requests:

RelationshipTypeDescription
triggerbelongs tothe specific type of trigger, e.g. a workflow_event_trigger

Create

Example request:

{
"data": {
"type": "workflow_event_trigger",
"attributes": {
"event": "create",
"item_type": "user"
}
}
}

Example response:

{
"data": {
"id": "85579c3b-22ea-43b8-ab79-d60d05680be5",
"type": "workflow_event_trigger",
"attributes": {
...
}
}
}

This endpoint creates a new trigger for a workflow.

⚠️ Attention: The data in the body should not be a workflow_trigger, but a specific type of trigger instead - e.g. a workflow_event_trigger.

HTTP Request

POST /api/v1/workflows/:workflow_id/trigger

URL Parameters

ParameterDescription
workflow_idThe ID of the workflow that the trigger belongs to