Enable/Disable Workflow
Changed onEnable or disable a workflow. Disabled workflows will not be executed when triggered. By default, workflows are enabled unless you explicitly disable them.
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 to which the workflow belongs (staging, production, etc.)
Unique identifier of the workflow. You can get it from workflow settings.
Request body
Example request
{
"is_enabled": true
}Response
Workflow status updated successfully
Example response
{
"$schema": "https://schema.suprsend.com/workflow/v1/schema.json",
"slug": "welcome-sequence",
"is_enabled": true,
"name": "Welcome Sequence",
"category": "transactional"
}Changes
- 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 - breaking
the
response property's maxLength was increased from255to500for the response status - breaking
the
response's property type changed fromstringtoobjectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the
response's property pattern was changed from^[a-z0-9-_]+$to^[a-zA-Z0-9_-]+$for the status
- breaking