Update Workflow
Updates a workflow. Only the fields present in changes are written, so omitted keys stay as they are.
Authorization
Authorization In: header
Path Parameters
ID of the project that owns the workflow.
ID of the workflow to update.
Request Body
application/json
Fields to change. Anything omitted is left as-is.
Audience filter groups. A contact must match at least one group to enter the workflow.
Attribute filters combined with groupType.
Contact attribute distinct id to filter on.
Attribute type. Defaults to string when omitted.
Comparison operator for the attribute value.
Value to compare the attribute against.
Event filters evaluated over the last 24 hours only.
Analytics event name.
Whether the contact performed the event in the last 24 hours.
How filters in this group are combined.
When true, the group is ANDed with $subscribed == true. Set by email sending, not the filter UI.
ONCE runs a contact through at most once. EVERY re-enters them each time the trigger fires, subject to maxRuns and minDelay.
Maximum times a contact can go through this workflow. Null means no cap.
Minimum delay between runs for the same contact. Pair with minDelayUnit.
Unit for minDelayAmount: MINUTES, HOURS, or DAYS.
Display name of the workflow.
INACTIVE, PAUSED, or ACTIVE.
Name of the analytics event that starts a run, e.g. signup.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://www.saasco.com/api/v2/projects/string/workflows/string" \ -H "Content-Type: application/json" \ -d '{ "changes": {} }'{
"id": "string",
"createdAt": "string",
"updatedAt": "string",
"name": "string",
"projectId": "string",
"triggerEvent": "string",
"maxRuns": -9007199254740991,
"minDelayAmount": 5,
"minDelayUnit": "MINUTES",
"frequency": "ONCE",
"status": "INACTIVE",
"contactsFilterGroups": [
{
"filters": [
{
"attributeDistinctId": "string",
"attributeType": "string",
"operator": "equals",
"value": "string"
}
],
"oneDayEventFilters": [
{
"eventName": "string",
"operator": "performed"
}
],
"groupType": "AND",
"requireSubscribed": true
}
]
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Create Workflow
Creates a workflow definition: the trigger event, audience filters, frequency, and delay between runs. Creating one never starts a run and never sends anything. Steps and edges are added separately.
Delete Workflow
Permanently deletes a workflow and everything cascading from it: steps, edges, runs, and run logs. Cannot be undone.