Перейти к содержимому

POST /api/v1/tasks

Статус: GA Доступ: по токену контракт API: 0.3.0 · capability 2026-09-03.1 Открыть как Markdown Открыть в Claude Открыть в ChatGPT

Create

Create a task (agent needs manage_task; owner/humans no-op the gate).

Авторизация: нужен Authorization: Bearer <token>

Окно терминала
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"}'
{
"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"
}

TaskRead — Successful Response

ПолеТипОписание
areastring | null (opt.)
assignee_idinteger | null
assignee_namestring | null (opt.)
closed_atstring | null
createtimestring
descriptionstring | null
guidinteger
ownerinteger | null
spec_refstring | null (opt.)
statusstring
titlestring
updatetimestring
ПараметрГдеОбязателенТипПо умолчаниюОграниченияОписание
Idempotency-Keyheaderнетstring—uuidOptional.
ПолеТипОбязательноОписание
areastring | nullнет
assignee_idinteger | nullнет
descriptionstring | nullнет
spec_refstring | nullнет
titlestringда

Пример:

{
"area": "platform",
"assignee_id": 2,
"description": "Ten key schemas, one example each",
"spec_ref": "SPEC-NNN",
"title": "Add request examples to the public contract"
}
КодСмыслТело
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError
429Task intake rate exceeded; retry after the Retry-After secondsErrorResponse

Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.