Creating a label

Creates a label with the specified name.

Request

POST

https://api-metrica.yandex.net/management/v1/labels

Body

application/json
{
    "label": {
        "id": 0,
        "name": "string"
    }
}

Name

Description

label*

Type: Label

Label.

Label

Label.

Name

Description

id

Type: integer<int32>

Label ID.

name

Type: string

Label name.

Min length: 0

Max length: 255

Responses

200 OK

OK

Body

application/json
{
    "label": {
        "id": 0,
        "name": "string"
    }
}

Name

Description

label*

Type: Label

Label.