---
title: PATCH /api/v1/tasks/{guid}
description: Patch
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/tasks/patch-tasks-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). Группа: [tasks](../).
:::

Patch

Change status (open↔closed) / reassign / edit; logs each field change.

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

## Запрос

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

```json
{
  "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` | нет |  |

_Пример:_

```json
{
  "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` ведёт в [Справочник ошибок](../../../reference/errors/).
