Workflows
Update a workflow
Updates a workflow definition. Structural changes (states/transitions) are re-validated. Existing tasks in a removed state stay put but can only leave via transitions valid in the new definition.
patch/v1/projects/{project_id}/workflows/{workflow_id}
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/workflows/{workflow_id}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
workflow_idstring required
Headers
If-Matchstring
The version the caller believes the resource holds, as an entity tag (3 or "3"). Equivalent to expected_version in the request body; * states no precondition beyond the resource existing. A mismatch is 409 VERSION_CONFLICT.
Request body
Example request
{
"version_label": "pre-rewire",
"expected_version": 3
}Response
Workflow updated
Example response
{
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.