myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

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

NameInTypeRequiredDescription
id
path
number
yes
Workflow id.
workspace_id
body
number
yes
A workspace of the installer.
name
body
stringnoWorkflow name, 1–255 characters.
stop_on_reply
body
booleannoA contact who replies leaves the workflow.
allow_re_entry
body
booleannoA contact who finished can start it again.
execution_window
body
object | nullnoOnly 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

StatusWhen
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

workflowobject
idnumber

Workflow id.

Example:1201
namestring

Workflow name.

Example:Welcome new contacts
statusstring

`draft` (not running) or `active` (running).

Example:draft
workspace_idnumber

The workspace it runs in.

Example:7
stop_on_replyboolean

A contact who replies leaves the workflow.

allow_re_entryboolean

A contact who finished can start it again.

execution_windowobject

The hours it may send in: `enabled`, `timezone`, `start_time`, `end_time`, `skip_weekends`.

step_countnumber

How many steps (canvas nodes) it has, the trigger included.

Example:4
created_atstring (ISO 8601)

Created.

updated_atstring (ISO 8601)

Last saved.

Request
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
  }
}'
Responses
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 »