Match counter to tag

Attention.

Access tokens will not be accepted in URL parameters starting February 13, 2019. To continue working with the Yandex.Metrica API, set up authorization by passing the token in the HTTP header.

The outdated authorization method will be temporarily disabled on January 23, January 30, and February 6 for maintenance. Authorization using URL parameters will be unavailable on these dates.

Links specified counter to specified tag.

  1. Request syntax
  2. Response format

Request syntax

counterId — counter ID, which you need to link to a tag.

labelId — tag ID, to which you need to link a counter.

https://api-metrica.yandex.net/management/v1/counter/{counterId}/label/{labelId}
 ? 

Request example

POST https://api-metrica.yandex.net/management/v1/counter/{counterId}/label/{labelId}?

Response format


{
    "success" :  < boolean > 
}
ParametersDescription
successResult of performing action.