Action information

Returns information about the specified action of a counter.

Request

GET

https://api-metrica.yandex.net/management/v1/counter/{counterId}/operation/{operationId}

Path parameters

Name

Description

counterId*

Type: integer<int32>

ID of the counter for which you want to get action information.
Example: 2215573

operationId*

Type: integer<int32>

ID of the action you want to get information about.
Example: 66955

Query parameters

Name

Description

callback

Type: string

Callback function that processes the API response.

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.

OperationE

List of structures with information on counter actions.

Name

Description

action*

Type: string

Action type:

  • cut_fragment: Remove anchor from URL.
  • cut_parameter: Remove specific parameter from URL.
  • cut_all_parameters: Cut all parameters from URL.
  • merge_https_and_http: Replace https:// with http://.
  • to_lower: Convert to lower case.
  • replace_domain: Replace domain.

attr*

Type: string

Field for filtering:

  • referer: Referrer.
  • url: Page URL.

status*

Type: string

Action status:

  • active: Action is used.
  • disabled: Action is disabled (without deletion).

id

Type: integer<int32>

Action ID (needs to be specified while changing a counter action).

value

Type: string

Value for replacement.