Creating an action
Creates an action for the counter.
Request
POST
https://api-metrika.yandex.net/management/v1/counter/{counterId}/operations
Path parameters
| Name | Description | 
| counterId* | Type: integer<int32> ID of the counter to create an action for. | 
Body
application/json
{
    "operation": {
        "id": 0,
        "action": "string",
        "attr": "string",
        "value": "string",
        "status": "string"
    }
}
| Name | Description | 
| operation* | Type: OperationE List of structures with information on counter actions. | 
OperationE
List of structures with information on counter actions.
| Name | Description | 
| action* | Type: string Action type: 
 | 
| attr* | Type: string Field for filtering: 
 | 
| status* | Type: string Action status: 
 | 
| id | Type: integer<int32> Action ID (needs to be specified while changing a counter action). | 
| value | Type: string Value for replacement. | 
Responses
200 OK
OK
Body
application/json
{
    "operation": {
        "id": 0,
        "action": "string",
        "attr": "string",
        "value": "string",
        "status": "string"
    }
}
| Name | Description | 
| operation* | Type: OperationE List of structures with information on counter actions. | 
No longer supported, please use an alternative and newer version.
Was the article helpful?
Previous