---
title: PATCH /api/v1/tickets/{guid}
description: Transition Ticket
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/tickets/patch-tickets-guid/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Сгенерировано из OpenAPI-контракта — не редактировать руками. Сводки операций и описания полей приводятся на английском (дословно из контракта). Интерактивный обозреватель с полными схемами: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); замороженная спецификация этой сборки: [openapi.json](/developers/api/openapi.json). Группа: [tickets](../).
:::

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>`

## Запрос

```sh
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"}'
```

## Ответ `200`

В контракте нет примера для этого ответа; схема: `TicketRead`. Поля — в [интерактивном обозревателе](https://entherium.duckdns.org:8443/reference).

## Возвращает

`TicketRead` — Successful Response

| Поле | Тип | Описание |
| --- | --- | --- |
| `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` |  |

## Параметры

| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
| --- | --- | --- | --- | --- | --- | --- |
| `guid` | path | да | `integer` | — | — |  |
| `Idempotency-Key` | header | нет | `string` | — | uuid | Optional. |

## Тело запроса

| Поле | Тип | Обязательно | Описание |
| --- | --- | --- | --- |
| `action` | `"resolve" \| "dismiss" \| "promote" \| "target" \| "reopen" \| "edit"` | да |  |
| `description` | `string \| null` | нет |  |
| `promoted_to` | `string \| null` | нет |  |
| `resolution` | `string \| null` | нет |  |
| `severity` | `"sev1" \| "sev2" \| "sev3" \| "sev4" \| null` | нет |  |
| `spec_ref` | `string \| null` | нет |  |
| `title` | `string \| null` | нет |  |

_Пример:_

```json
{
  "action": "resolve",
  "resolution": "fixed in build 0.3.1; verified on the live URL"
}
```

## Ошибки

| Код | Смысл | Тело |
| --- | --- | --- |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
| `422` | Validation Error | `HTTPValidationError` |

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