Commit Workflow
Changed onCommit a workflow to make the draft version live.
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.
Query parameters
Commit message describing the changes
Response
Workflow committed successfully. The response will be the newly committed live version.
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 non-success response with the status
- info
added the non-success response with the 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