---
title: "🔒 #26565 Изменение юр. лица компании."
method: POST
path: "/company/organization/update"
tags: ["Company"]
---

# 🔒 #26565 Изменение юр. лица компании.

`POST /company/organization/update`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/company/organization/update`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

#26565 Изменение юр. лица компании.

**Access:** `authorized` (10 ) · **Scope:** `write`

**Allows:** `company:organizations` (все обязательны; без ресурса)

### TypeScript (copy-paste)

**`POST /company/organization/update`**

<details open><summary><b>Params</b></summary>

```typescript
export interface CompanyOrganizationUpdateParams {
  ID: string
}
```

</details>

<details open><summary><b>Body (Partial)</b></summary>

```typescript
export interface CompanyOrganizationUpdateBody {
  type?: Company_OrganizationType
  title?: string
  fullTitle?: string
  inn?: string
  kpp?: string | null
  ogrn?: string
  urAddress?: string
  factAddress?: string | null
  nds?: number | null
  head?: {
  fullName: string
  position?: string | null
}
  bank?: {
  bic: string
  title: string
  corrAccount: string
  account: string
} | null
  accountantEmails?: Array<string>
  docs?: {
  INN?: string | null
  requisites?: string | null
  other1?: string | null
  other2?: string | null
} | null
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type CompanyOrganizationUpdateResponse = IServerResponse<Record<string, any>>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Query parameters

- `ID` string, uuid, required

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- CompanyOrganizationUpdateBody: Partial body (Valid.Patch) for `company/organization/update` — все поля опциональны
  - `type` 'ooo' | 'ao' | 'ip': `ooo` = "ooo", `ao` = "ao", `ip` = "ip"
  - `title` string
  - `fullTitle` string
  - `inn` string
  - `kpp` string, nullable
  - `ogrn` string
  - `urAddress` string
  - `factAddress` string, nullable
  - `nds` integer, nullable
  - `head` object
    - `fullName` string, required
    - `position` string, nullable
  - `bank` object, nullable
    - `bic` string, required
    - `title` string, required
    - `corrAccount` string, required
    - `account` string, required
  - `accountantEmails` string[]
  - `docs` object, nullable
    - `INN` string, uuid, nullable
    - `requisites` string, uuid, nullable
    - `other1` string, uuid, nullable
    - `other2` string, uuid, nullable

## Response `200`

OK — `IServerResponse<Record<string, any>>`

- object
  - `code` integer, required
  - `data` object, required: Response payload (нет ResponseData / doc.schema)
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: Invalid requisites
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege company:organizations required
- `404`: NotFound: Organization not found
- `406`: TimeResync — расхождение rts с сервером

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
