Tasks
Transition a task
Fires a named transition on a task. The transition must exist in the workflow and be valid from the task's current state; its guard must pass. This is the single path every state change routes through. A transition declaring requires_approval does not move the task — it parks a pending ApprovalItem and returns the task with pending_transition set; the move applies only when the approval is approved.
post/v1/projects/{project_id}/tasks/{task_id}/transitions
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/tasks/{task_id}/transitions
- 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
Headers
Idempotency-Keystring
The request's deduplication key. Equivalent to idempotency_key in the request body; sending both with different values is 400 VALIDATION_FAILED. A non-empty string of at most 255 characters.
Request body
Response
The task after the transition
Example response
{
"workflow_version": 1,
"metadata": {
"author": "John",
"revision": 2
}
}Changes
No recorded changes to this operation across all 1 revision of this API.