Create tag
Creates a tag with the specified name
Function CreateTag(Val Token, Val Name) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Auth token |
Name | --title | String | ✔ | Tag title |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
tip
Method at API documentation: Creating a tag
1C:Enterprise/OneScript code example
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
Name = "New tag";
Result = OPI_YandexMetrika.CreateTag(Token, Name);
- Bash
- CMD/Bat
oint metrika CreateTag \
--token "***" \
--title "New tag"
oint metrika CreateTag ^
--token "***" ^
--title "New tag"
Result
{
"label": {
"id": 313496,
"name": "New tag"
}
}