Skip to main content

Update tag

Changes the tag name by ID

Function UpdateTag(Val Token, Val TagID, Val Name) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
TagID--labelStringTag ID to change
Name--titleStringNew 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);
    oint metrika UpdateTag \
--token "***" \
--label "314175" \
--title "New tag title"
Result
{
"label": {
"id": 313496,
"name": "New tag title"
}
}