POST /api/v1/tasks
Create
Create a task (agent needs manage_task; owner/humans no-op the gate).
Auth: Authorization: Bearer <token> required
Request
Section titled “Request”curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/tasks" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"area":"platform","assignee_id":2,"description":"Ten key schemas, one example each","spec_ref":"SPEC-NNN","title":"Add request examples to the public contract"}'Response 201
Section titled “Response 201”{ "area": "platform", "assignee_id": 2, "assignee_name": "Owner", "createtime": "2026-09-03T08:00:00Z", "description": "Ten key schemas, one example each", "guid": 118, "owner": 5, "spec_ref": "SPEC-NNN", "status": "open", "title": "Add request examples to the public contract", "updatetime": "2026-09-03T08:00:00Z"}Returns
Section titled “Returns”TaskRead — Successful Response
| Field | Type | Description |
|---|---|---|
area | string | null (opt.) | |
assignee_id | integer | null | |
assignee_name | string | null (opt.) | |
closed_at | string | null | |
createtime | string | |
description | string | null | |
guid | integer | |
owner | integer | null | |
spec_ref | string | null (opt.) | |
status | string | |
title | string | |
updatetime | string |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
area | string | null | no | |
assignee_id | integer | null | no | |
description | string | null | no | |
spec_ref | string | null | no | |
title | string | yes |
Example:
{ "area": "platform", "assignee_id": 2, "description": "Ten key schemas, one example each", "spec_ref": "SPEC-NNN", "title": "Add request examples to the public contract"}Errors
Section titled “Errors”| Code | Meaning | Body |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
429 | Task intake rate exceeded; retry after the Retry-After seconds | ErrorResponse |
Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.