# Групи номенклатури: методи API Bimp

URL: https://bimpsoft.com/help/developers/api-reference/nomenclature-group/

Методи API Bimp для ресурсу «Групи номенклатури» (`/org2/nomenclature-group/…`): 4 методи. Базова адреса: `https://app.bimpsoft.com`. Усі запити, крім входу, передають токен компанії в заголовку `access-token` — див. [Початок роботи з API](/help/developers/api-getting-started/).

| Метод | Що робить |
|---|---|
| [`POST /org2/nomenclature-group/api-readList`](#api-read-list) | A request to view a list of nomenclature groups |
| [`POST /org2/nomenclature-group/api-read`](#api-read) | A request to obtain detailed information for a particular nomenclature group |
| [`POST /org2/nomenclature-group/api-create`](#api-create) | A request to create a new nomenclature group |
| [`POST /org2/nomenclature-group/api-update`](#api-update) | A request to update information for an existing nomenclature group |

## api-readList

`POST /org2/nomenclature-group/api-readList`

A request to view a list of nomenclature groups

**Тіло запиту (JSON)**

| Поле | Тип | Обов'язкове | Опис |
|---|---|---|---|
| `uuid` | string[] |  | A unique uuid keys for the nomenclature group |

**Відповідь: поле `data`**

| Поле | Тип | Опис |
|---|---|---|
| `[].uuid` | string (uuid) | A unique uuid key for the Nomenclature group |
| `[].name` | string | Nomenclature group name |
| `[].description` | string | Description about nomenclature group |
| `[].parentuuid` | null \| string (uuid) |  |

```bash
curl -X POST 'https://app.bimpsoft.com/org2/nomenclature-group/api-readList' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":["string"]}'
```

## api-read

`POST /org2/nomenclature-group/api-read`

A request to obtain detailed information for a particular nomenclature group

**Тіло запиту (JSON)**

| Поле | Тип | Обов'язкове | Опис |
|---|---|---|---|
| `uuid` | string (uuid) | так | A unique uuid key for the nomeclature group |

```bash
curl -X POST 'https://app.bimpsoft.com/org2/nomenclature-group/api-read' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'
```

## api-create

`POST /org2/nomenclature-group/api-create`

A request to create a new nomenclature group

**Тіло запиту (JSON)**

| Поле | Тип | Обов'язкове | Опис |
|---|---|---|---|
| `name` | string | так | Nomenclature group name |
| `description` | string |  | Description about nomenclature group |
| `parentuuid` | null \| string (uuid) |  |  |

**Відповідь: поле `data`**

| Поле | Тип | Опис |
|---|---|---|
| `uuid` | string (uuid) | A unique uuid key for the Nomenclature group |

```bash
curl -X POST 'https://app.bimpsoft.com/org2/nomenclature-group/api-create' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"name":"string"}'
```

## api-update

`POST /org2/nomenclature-group/api-update`

A request to update information for an existing nomenclature group

**Тіло запиту (JSON)**

| Поле | Тип | Обов'язкове | Опис |
|---|---|---|---|
| `uuid` | string (uuid) | так | A unique uuid key for the Nomenclature group |
| `name` | string |  | Nomenclature group name |
| `description` | string |  | Description about nomenclature group |
| `parentuuid` | null \| string (uuid) |  |  |

```bash
curl -X POST 'https://app.bimpsoft.com/org2/nomenclature-group/api-update' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'
```

Інтерактивна документація з можливістю надіслати тестовий запит: [https://app.bimpsoft.com/docs](https://app.bimpsoft.com/docs). Специфікація OpenAPI оновлюється разом із Bimp; ця сторінка згенерована з неї автоматично.
