PATCH /api/v1/tickets/{guid}
Transition Ticket
Resolve / dismiss / promote a ticket, state-machine-guarded.
Owner-only. An illegal transition (e.g. closing an already-closed ticket) → 409.
Auth: Authorization: Bearer <token> required
Request
Section titled “Request”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"}'Response 200
Section titled “Response 200”The contract carries no example for this response; schema: TicketRead. Field-level shape: interactive explorer.
Returns
Section titled “Returns”TicketRead — Successful Response
| Field | Type | Description |
|---|---|---|
area | string | null (opt.) | |
closed_at | string | null (opt.) | |
component | string | null (opt.) | |
contract_guid | integer | null (opt.) | |
createtime | string | |
description | string | null (opt.) | |
duplicate_of | integer | null (opt.) | |
evidence | object (opt.) | |
fingerprint | string | |
first_seen | string | null (opt.) | |
guid | integer | |
kind | string | |
last_seen | string | null (opt.) | |
occurrence_count | integer | |
promoted_to | string | null (opt.) | |
reporter | string | null (opt.) | |
repro | object (opt.) | |
resolution | string | null (opt.) | |
severity | string | null (opt.) | |
spec_ref | string | null (opt.) | |
status | string | |
title | string | |
vote_count | integer |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
guid | path | yes | integer | — | — | |
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
action | "resolve" | "dismiss" | "promote" | "target" | "reopen" | "edit" | yes | |
description | string | null | no | |
promoted_to | string | null | no | |
resolution | string | null | no | |
severity | "sev1" | "sev2" | "sev3" | "sev4" | null | no | |
spec_ref | string | null | no | |
title | string | null | no |
Example:
{ "action": "resolve", "resolution": "fixed in build 0.3.1; verified on the live URL"}Errors
Section titled “Errors”| Code | Meaning | Body |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.