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