Create or Update Workflow
Changed onCreate a new workflow or update the draft version of an existing one
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace where the workflow should be created (staging, production, etc.)
Unique identifier of the workflow. You can get it from workflow settings for existing workflows.
Query parameters
Whether to commit the workflow immediately. Workflow will be successfully committed only if validation_result.is_valid is true.
Optional commit message describing the changes. Used only when commit=true.
Request body
Example request
{
"name": "Welcome Sequence",
"category": "transactional",
"tags": [
"onboarding-sequence"
],
"payload_schema": {
"schema": "onboarding-sequence-schema",
"version_no": 1
},
"ratelimit": {
"count": 4,
"sliding_window": "6m"
},
"conditions": [
{
"type": "expression_v1",
"expression_v1": {
"args": [
{
"op": "==",
"value": "\"admin\"",
"variable": "role",
"variable_ns": "$recipient"
}
]
}
}
],
"override_recipients_type": "user",
"override_recipients_user_expr": ".distinct_id",
"override_recipients_single_object_fields_expr": {
"id": ".object_id",
"object_type": ".object_type",
"$object_subscriptions_query.depth": "2"
},
"override_actor_user_expr": ".actor_id",
"override_tenant_expr": ".tenant_id",
"tree": {
"nodes": [
{
"name": "Wait 30 minutes",
"properties": {
"relative_to": {
"pivot_expr": ".start_time"
}
}
}
]
}
}Response
Workflow created. The response includes the saved workflow object along with a validation_result field that indicates whether the workflow configuration is valid. When commit=true is passed, a commit_result field is also returned.
Changes
- breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
///// - breaking
added the new required request property
///// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
added the new required request property
//// - breaking
the request property
////////became required - breaking
removed the enum value
$workflowof the request property/////////// - breaking
removed the enum value
ORof the request property///////// - breaking
the
////request property type changed fromstringtoobject - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response404 - warning
the
request property's maxLength was set to500 - warning
the
request property's maxLength was set to255 - warning
the
/request property's maxLength was set to16 - warning
the
/request property's maxLength was set to128 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
////request property's maxLength was set to64 - warning
the
/request property's maxLength was set to255 - warning
the
/request property's max was set to100.00 - warning
the
/request property's min was set to1.00 - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
////////// - warning
removed the request property
/////////// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
////////// - info
added the new optional request property
////////// - info
added the new optional request property
//// - info
added the new optional request property
/////////// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
added the new
$actorenum value to the request property///// - info
added the new
$brandenum value to the request property///// - info
added the new
$brandenum value to the request property/////////// - info
added the new
$categoryenum value to the request property///// - info
added the new
$categoryenum value to the request property/////////// - info
added the new
$organizationenum value to the request property///// - info
added the new
$organizationenum value to the request property/////////// - info
added the new
$refenum value to the request property/////////// - info
added the new
ARRAY_INTERSECTSenum value to the request property/////////// - info
added the new
ISenum value to the request property/////////// - info
added the new
IS_NOTenum value to the request property/////////// - info
added the new
NOT_ARRAY_INTERSECTSenum value to the request property/////////// - info
the
////request property's minLength was decreased from1to0 - info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the success response with the status
- breaking
- breaking
removed the enum value
$brandof the request property/////////// - info
added the new
$tenantenum value to the request property///////////
- breaking