Complete Task
Mark a task as done (or refused) from a worker terminal payload.
Structured payloads (body.payload or a JSON object embedded in result_summary) are validated against the worker completion contract (#2244): an invalid payload is a typed contract_violation failure carrying the schema error path, and a validated refusal lands the task in the terminal REFUSED state instead of DONE. Legacy prose summaries are accepted unchanged.
If result_summary is empty the task is auto-transitioned to FAILED with reason='completion missing summary' and a 422 is returned with the failed task payload so the client knows the slot was released.
post/api/v1/tasks/{task_id}/complete
Request
- Base URL: http://127.0.0.1:8052
- URL: http://127.0.0.1:8052/api/v1/tasks/{task_id}/complete
- Auth: none declared
Path parameters
task_idstring required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.