Create goal

Creates counter goal.

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

Request syntax

counterId — counter ID, for which you want to create a goal.

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

Request message body


{
    "goal" :  < goal > 
}
Parameters Description
goal Goal information.

Request example

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

Response format


{
    "goal" :  < goal > 
}
Parameters Description
goal Goal information.