Changing an action
Changes settings for the specified tag action.
Request syntax
counterId
: ID of the tag whose action you want to change.
operationId
: ID of the action that you want to change.
PUT https://api-metrika.yandex.net/management/v1/counter/{counterId}/operation/{operationId}
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
PUT https://api-metrika.yandex.net/management/v1/counter/{counterId}/operation/{operationId}
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:
|