Update workflow
PATCH
/api/v1/ext/workflows/{id}
Rename it, or change stop on reply, re-entry or the sending hours.
Auth: Bearer access_token
Scope: automations.write
Settings only: the steps are kept exactly as they are, so contacts already in the workflow carry on. Steps are edited in Automations on the dashboard, and status is changed with Activate / Deactivate workflow.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Workflow id. |
| workspace_id | body | number | yes | A workspace of the installer. |
| name | body | string | no | Workflow name, 1–255 characters. |
| stop_on_reply | body | boolean | no | A contact who replies leaves the workflow. |
| allow_re_entry | body | boolean | no | A contact who finished can start it again. |
| execution_window | body | object | null | no | Only send between these hours: { "enabled": true, "timezone": "Australia/Sydney", "start_time": "09:00", "end_time": "18:00", "skip_weekends": true }. null (or enabled: false) turns it off. |
Responses
| Status | When |
|---|---|
200 | OK |
400 | Nothing to update, a bad value, or steps / status sent |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id does not exist or is not the installer's (same response for both) |
404 | The workflow does not exist, is not the installer's, or is in another workspace |
Response schema
workflowobjectidnumberWorkflow id.
Example:
1201namestringWorkflow name.
Example:
Welcome new contactsstatusstring`draft` (not running) or `active` (running).
Example:
draftworkspace_idnumberThe workspace it runs in.
Example:
7stop_on_replybooleanA contact who replies leaves the workflow.
allow_re_entrybooleanA contact who finished can start it again.
execution_windowobjectThe hours it may send in: `enabled`, `timezone`, `start_time`, `end_time`, `skip_weekends`.
step_countnumberHow many steps (canvas nodes) it has, the trigger included.
Example:
4created_atstring (ISO 8601)Created.
updated_atstring (ISO 8601)Last saved.
RequestResponses
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/workflows/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 7,
"name": "Welcome — new contacts",
"stop_on_reply": false,
"execution_window": {
"enabled": true,
"timezone": "Australia/Sydney",
"start_time": "09:00",
"end_time": "18:00",
"skip_weekends": true
}
}'OK
{
"success": true,
"message": "Workflow updated",
"data": {
"id": 1201,
"name": "Welcome — new contacts",
"status": "draft",
"workspace_id": 7,
"stop_on_reply": false,
"allow_re_entry": true,
"execution_window": {
"enabled": true,
"timezone": "Australia/Sydney",
"start_time": "09:00",
"end_time": "18:00",
"skip_weekends": true
},
"step_count": 4,
"created_at": "2026-10-28T09:00:00.000Z",
"updated_at": "2026-10-28T09:00:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Workflow id.
Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/workflows/%7Bid%7D
Previous
« Create workflow
Next
Activate workflow »
