---
title: "Изменить название, родителя, активность или участие в ДДС"
method: PATCH
path: "/api/v1/core/gl-accounts/{id}"
tags: ["Core ledger"]
---

# Изменить название, родителя, активность или участие в ДДС

`PATCH /api/v1/core/gl-accounts/{id}`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/core/gl-accounts/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2
    - Authorization code: `https://erp.akeda.ru/oauth2/authorize`
    - Token URL: `https://erp.akeda.ru/oauth2/token` scopes: `akeda:delegate`
  - HTTP bearer

Код, тип и участие в ОПиУ неизменяемы, потому что задают смысл истории.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Request body

- CoreGLAccountPatch
  - `name` string
  - `parent_id` string, uuid
  - `is_active` boolean
  - `affects_cashflow` boolean

## Response `200`

Обновлённый счёт

- CoreGLAccount
  - `id` string, uuid, required
  - `code` string, required
  - `name` string, required
  - `type` 'asset' | 'liability' | 'equity' | 'income' | 'expense', required
  - `parent_id` string, uuid
  - `is_active` boolean, required
  - `is_system` boolean, required
  - `affects_pnl` boolean, required
  - `opening_input` 'free' | 'contact' | 'employee' | 'stock' | 'money', required
  - `affects_cashflow` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `404`: Запись не найдена или не видима текущему пользователю

## Changes

- **2026-10-27** `4323d2165568`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/core/gl-accounts/:id/patch.md)

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) - [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c?raw)
