Tasks
Migrate a task to a newer workflow version
Moves an open task onto a newer version of its workflow. A state the target version also declares maps to itself; state_map maps a state it lacks. The payload is re-validated against the target payload_schema. The mapped state's on_enter is not fired: transition the task when you want the target's automation. A task with a dispatch in flight or a transition pending approval is refused, since both belong to the version they started under. Recorded in history as a row with transition: null and both versions.
post/v1/projects/{project_id}/tasks/{task_id}/migrate
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/tasks/{task_id}/migrate
- 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
task_idstring required
The task to migrate.
Request body
Response
The task on the target version
Example response
{
"workflow_version": 1,
"metadata": {
"author": "John",
"revision": 2
}
}Changes
No recorded changes to this operation across all 1 revision of this API.