Changing a comment

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.

Changes the note on the counter.

  1. Request syntax
  2. Request message body
  3. Response format

Request syntax

counterId — ID of the counter with the comment that you want to change.

id — ID of the comment to change.

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

Request message body


{
    "chart_annotation" :  < _metrika_chart_annotation > 
}
Parameters Description
chart_annotation Comment.

Request example

PUT https://api-metrica.yandex.net/management/v1/counter/{counterId}/chart_annotation/{id}?

Response format


{
    "chart_annotation" :  < _metrika_chart_annotation > 
}
Parameters Description
chart_annotation Comment.