Creating an action
Creates an action for the tag.
Request syntax
counterId
: ID of the tag to create an action for.
POST https://api-metrika.yandex.net/management/v1/counter/{counterId}/operations
In the request body
{
"operation" : {
"action" : < operation_type > ,
"attr" : < operation_attribute > ,
"value" : < string > ,
"status" : < operation_status >
}
}
Parameters | Description |
---|---|
operation | Action. |
operation | |
action | Action type. Possible values:
|
attr | Field for filtering. Possible values:
|
value | Value for replacement. |
status | Action status. Possible values:
|
Parameters | Description |
---|---|
operation | Action. |
operation | |
action | Action type. Possible values:
|
attr | Field for filtering. Possible values:
|
value | Value for replacement. |
status | Action status. Possible values:
|
Sample request
POST https://api-metrika.yandex.net/management/v1/counter/{counterId}/operations
Response format
{
"operation" : {
"id" : < int > ,
"action" : < operation_type > ,
"attr" : < operation_attribute > ,
"value" : < string > ,
"status" : < operation_status >
}
}
Parameters | Description |
---|---|
operation | Action. |
operation | |
id | Action ID (needs to be specified while changing a tag action). |
action | Action type. Possible values:
|
attr | Field for filtering. Possible values:
|
value | Value for replacement. |
status | Action status. Possible values:
|
Parameters | Description |
---|---|
operation | Action. |
operation | |
id | Action ID (needs to be specified while changing a tag action). |
action | Action type. Possible values:
|
attr | Field for filtering. Possible values:
|
value | Value for replacement. |
status | Action status. Possible values:
|