PATCH /api/v1/tasks/{guid}
Patch
Change status (open↔closed) / reassign / edit; logs each field change.
Авторизация: нужен Authorization: Bearer <token>
curl -sS -X PATCH "https://entherium.duckdns.org:8443/api/v1/tasks/<guid>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"description":"Done: examples added to 17 request schemas","status":"closed"}'Ответ 200
Заголовок раздела «Ответ 200»{ "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
| Поле | Тип | Описание |
|---|---|---|
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 |
Параметры
Заголовок раздела «Параметры»| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
|---|---|---|---|---|---|---|
guid | path | да | integer | — | — | |
Idempotency-Key | header | нет | string | — | uuid | Optional. |
Тело запроса
Заголовок раздела «Тело запроса»| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
area | string | null | нет | |
assignee_id | integer | null | нет | |
description | string | null | нет | |
spec_ref | string | null | нет | |
status | "open" | "closed" | null | нет | |
title | string | null | нет |
Пример:
{ "description": "Done: examples added to 17 request schemas", "status": "closed"}| Код | Смысл | Тело |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
409 | Illegal status transition (e.g. closing an already-closed task) | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.