Creating a goal

Creates a tag goal.

Request syntax

counterId: ID of the tag that you want to create a goal for.

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

In the request body


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

Sample request

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

Response format


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