Creating a product list

Creates a product list.

  1. Request syntax
  2. In the request body
  3. Response format

Request syntax

counterId: Tag ID.

https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/schema/products
 ? 

In the request body


--data '{
        "attributes": [],
        "items": [
            {
                "name": "pear",
                "humanized": "Pear"
            },
            {
                "name": "cherry",
                "humanized": "Cherry"
            },
            {
                "name": "apple",
                "humanized": "Apple"
            },
            {
                "name": "tomato",
                "humanized": "Tomato"
            }
        ]
    }'

Parameters Description
items List items
items
name List item ID
humanized List item name
Parameters Description
items List items
items
name List item ID
humanized List item name

Sample request

POST https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/schema/products?

Response format


{
    "success" :  < boolean > 
}
Parameters Description
success Result of performing the action.
Parameters Description
success Result of performing the action.