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 ID of the counter to create an action for. |
Body
application/json
{
"operation": {
"id": 0,
"action": "example",
"attr": "example",
"value": "example",
"status": "example"
}
}
|
Name |
Description |
|
operation |
Type: OperationE List of structures with information on counter actions. Example
|
OperationE
List of structures with information on counter actions.
|
Name |
Description |
|
action |
Type: string Action type:
Example: |
|
attr |
Type: string Field for filtering:
Example: |
|
status |
Type: string Action status:
Example: |
|
id |
Type: integer Action ID (needs to be specified while changing a counter action). |
|
value |
Type: string Value for replacement. Example: |
Example
{
"id": 0,
"action": "example",
"attr": "example",
"value": "example",
"status": "example"
}
Responses
200 OK
OK
Body
application/json
{
"operation": {
"id": 0,
"action": "example",
"attr": "example",
"value": "example",
"status": "example"
}
}
|
Name |
Description |
|
operation |
Type: OperationE List of structures with information on counter actions. Example
|
No longer supported, please use an alternative and newer version.
Was the article helpful?
Previous