curl -X PATCH "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isActive": false }'
Workflows
Turn a workflow on or off
Turn a workflow on or off.
PATCH
/
workflows
/
{id}
curl -X PATCH "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isActive": false }'
This endpoint is for the VIP plan only. Other plans get a
403. See Plan access.Path Parameters
string
required
The workflow’s id.
Body
boolean
required
true to turn it on, false to turn it off.curl -X PATCH "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isActive": false }'
Errors
| Status | When |
|---|---|
400 | isActive is missing or not true or false, or you turned on a workflow that has a step that turns DND off. |
402 | The account has no plan, or its subscription is not active. |
403 | Your plan is not VIP, or you turned it on and workflows are not on your plan. |
404 | No workflow has this id, or it is not in this key’s scope. |
Was this page helpful?
