---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com.tr/dev/metrika/en/management/openapi/schema/createProducts.md
  - https://yandex.com.tr/dev/metrika/ru/management/openapi/schema/createProducts.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/metrika/ru/llms.txt

<!-- source: ru/management-src/Upravlenie-dannymi-o-klientah-i-zakazah-iz-CRM/createProducts.md -->
<div class="openapi">

# Создание списка товаров

<!-- markdownlint-disable-file -->

Создает список товаров.

{% cut "Пример тела запроса" %}

```json translate=no
--data '{
        "attributes": [],
        "items": [
            {
                "name": "pear",
                "humanized": "Груша"
            },
            {
                "name": "cherry",
                "humanized": "Вишня"
            },
            {
                "name": "apple",
                "humanized": "Яблоко"
            },
            {
                "name": "tomato",
                "humanized": "Томат"
            }
        ]
    }'
```

{% endcut %}


## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">

<div class="openapi__request">

POST {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/schema/products
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор счетчика.
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "attributes": [
    {
      "name": "example",
      "multivalued": true,
      "humanized": "example"
    }
  ],
  "items": [
    {
      "name": "example",
      "humanized": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_attributes_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [Attribute](#entity-Attribute)[]

Атрибуты списка.

_Min items:_{.json-schema-reset .json-schema-assertion} `0`

_Max items:_{.json-schema-reset .json-schema-assertion} `160000`

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "name": "example",
    "multivalued": true,
    "humanized": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_items_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [ListItem](#entity-ListItem)[]

Элементы списка.

_Min items:_{.json-schema-reset .json-schema-assertion} `0`

_Max items:_{.json-schema-reset .json-schema-assertion} `160000`

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "name": "example",
    "humanized": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### Attribute {#entity-Attribute}

Описание объекта `Attribute`.

#|
|| **Name** | **Description** ||
||

_multivalued_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: boolean

Определяет, может ли атрибут иметь несколько значений.
{.table-cell}
||
||

_name_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Идентификатор атрибута.

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Max length:_{.json-schema-reset .json-schema-assertion} `255`

_Pattern:_{.json-schema-reset .json-schema-assertion} `^[\w-:]+$`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_humanized_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Название атрибута.

_Min length:_{.json-schema-reset .json-schema-assertion} `0`

_Max length:_{.json-schema-reset .json-schema-assertion} `4096`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "name": "example",
  "multivalued": true,
  "humanized": "example"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### ListItem {#entity-ListItem}

Описание объекта `ListItem`.

#|
|| **Name** | **Description** ||
||

_name_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Идентификатор элемента списка.

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Max length:_{.json-schema-reset .json-schema-assertion} `255`

_Pattern:_{.json-schema-reset .json-schema-assertion} `^[\w-:]+$`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_humanized_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Название элемента списка.

_Min length:_{.json-schema-reset .json-schema-assertion} `0`

_Max length:_{.json-schema-reset .json-schema-assertion} `4096`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "name": "example",
  "humanized": "example"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "success": true
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_success_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Результат выполнения операции.

_Default:_{.json-schema-reset .json-schema-value} `true`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>
<!-- endsource: ru/management-src/Upravlenie-dannymi-o-klientah-i-zakazah-iz-CRM/createProducts.md -->

[*Deprecated]: No longer supported, please use an alternative and newer version.