Tasks

Report a task outcome

Moves a task to processing, completed or failed. cancelled is rejected — delete the task instead. A terminal transition fires the matching task.completed / task.failed webhook.

patch/api/v1/tasks/{id}

Request

  • Base URL: https://www.zen-mode.io
  • URL: https://www.zen-mode.io/api/v1/tasks/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

The task id returned when it was queued, e.g. task_mb3k2x1c_q8z0v7ke.

Request body

status'processing' | 'completed' | 'failed' required
resultobject

Response

Updated.

Changes

No recorded changes to this operation across all 1 revision of this API.