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

PATCH /api/v1/tickets/{guid}

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

Transition Ticket

Resolve / dismiss / promote a ticket, state-machine-guarded.

Owner-only. An illegal transition (e.g. closing an already-closed ticket) → 409.

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

Окно терминала
curl -sS -X PATCH "https://entherium.duckdns.org:8443/api/v1/tickets/<guid>" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"action":"resolve","resolution":"fixed in build 0.3.1; verified on the live URL"}'

В контракте нет примера для этого ответа; схема: TicketRead. Поля — в интерактивном обозревателе.

TicketRead — Successful Response

ПолеТипОписание
areastring | null (opt.)
closed_atstring | null (opt.)
componentstring | null (opt.)
contract_guidinteger | null (opt.)
createtimestring
descriptionstring | null (opt.)
duplicate_ofinteger | null (opt.)
evidenceobject (opt.)
fingerprintstring
first_seenstring | null (opt.)
guidinteger
kindstring
last_seenstring | null (opt.)
occurrence_countinteger
promoted_tostring | null (opt.)
reporterstring | null (opt.)
reproobject (opt.)
resolutionstring | null (opt.)
severitystring | null (opt.)
spec_refstring | null (opt.)
statusstring
titlestring
vote_countinteger
ПараметрГдеОбязателенТипПо умолчаниюОграниченияОписание
guidpathдаinteger——
Idempotency-Keyheaderнетstring—uuidOptional.
ПолеТипОбязательноОписание
action"resolve" | "dismiss" | "promote" | "target" | "reopen" | "edit"да
descriptionstring | nullнет
promoted_tostring | nullнет
resolutionstring | nullнет
severity"sev1" | "sev2" | "sev3" | "sev4" | nullнет
spec_refstring | nullнет
titlestring | nullнет

Пример:

{
"action": "resolve",
"resolution": "fixed in build 0.3.1; verified on the live URL"
}
КодСмыслТело
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

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