Changing an access filter.

Changes the specified access filter. For more information on access filters, see this article.

Request

PUT

https://api-metrika.yandex.net/management/v1/counter/{counterId}/access_filter/{accessFilterId}

Path parameters

Name

Description

accessFilterId*

Type: integer<int32>

ID of the access filter that you want to update.

counterId*

Type: integer<int32>

Counter ID.

Body

application/json
{
    "access_filter": {
        "id": 0,
        "counter_id": 0,
        "name": "string",
        "expression": "string",
        "interface_value": "string",
        "create_time": "2022-12-29T18:02:01Z"
    }
}

Name

Description

access_filter*

Type: AccessFilterDto

Access filter.

AccessFilterDto

Access filter.

Name

Description

counter_id

Type: integer<int32>

Counter ID.

create_time

Type: string<date-time>

Date created of the access filter in yyyy-MM-dd'T'HH:mm:ssXXX format.

expression

Type: string

An expression that matches the value of the "filters" parameter.

Min length: 1

Max length: 65535

id

Type: integer<int32>

Access filter ID.

interface_value

Type: string

Min length: 1

Max length: 65535

name

Type: string

Access filter name.

Min length: 1

Max length: 255

Responses

200 OK

OK

Body

application/json
{
    "access_filter": {
        "id": 0,
        "counter_id": 0,
        "name": "string",
        "expression": "string",
        "interface_value": "string",
        "create_time": "2022-12-29T18:02:01Z"
    }
}

Name

Description

access_filter*

Type: AccessFilterDto

Access filter.

No longer supported, please use an alternative and newer version.