---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com/dev/metrika/en/management/openapi/access_filter/updateAccessFilter.md
  - https://yandex.com/dev/metrika/ru/management/openapi/access_filter/updateAccessFilter.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/metrika/ru/llms.txt

<!-- source: ru/management-src/Upravlenie-filtrami-dostupa/updateAccessFilter.md -->
<div class="openapi">

# Изменение фильтра доступа

<!-- markdownlint-disable-file -->

Изменяет указанный фильтр доступа. Подробнее о фильтрах доступа в [статье](https://yandex.ru/support/metrica/general/access-filters).

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-put);margin-bottom: 12px">

<div class="openapi__request">

PUT {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/management/v1/counter/{counterId}/access_filter/{accessFilterId}
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_accessFilterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор фильтр доступа, который вы хотите обновить.
{.table-cell}
||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор счетчика.
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "access_filter": {
    "id": 0,
    "counter_id": 0,
    "name": "example",
    "expression": "example",
    "create_time": "2025-01-01T00:00:00Z"
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_access_filter_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AccessFilterDto](#entity-AccessFilterDto)

Фильтр доступа.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 0,
  "counter_id": 0,
  "name": "example",
  "expression": "example",
  "create_time": "2025-01-01T00:00:00Z"
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### AccessFilterDto {#entity-AccessFilterDto}

Фильтр доступа.

#|
|| **Name** | **Description** ||
||

_counter_id_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Идентификатор счетчика.
{.table-cell}
||
||

_create_time_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Время создания фильтра доступа в формате yyyy-MM-dd'T'HH:mm:ssXXX.

_Example:_{.json-schema-reset .json-schema-example} `2025-01-01T00:00:00Z`
{.table-cell}
||
||

_expression_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Выражение, которое соответствует [значению параметра filters](https://yandex.com/dev/metrika/ru/stat/segmentation.md).

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Max length:_{.json-schema-reset .json-schema-assertion} `65535`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Идентификатор фильтра доступа.
{.table-cell}
||
||

_name_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Название фильтра доступа.

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Max length:_{.json-schema-reset .json-schema-assertion} `255`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 0,
  "counter_id": 0,
  "name": "example",
  "expression": "example",
  "create_time": "2025-01-01T00:00:00Z"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "access_filter": {
    "id": 0,
    "counter_id": 0,
    "name": "example",
    "expression": "example",
    "create_time": "2025-01-01T00:00:00Z"
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_access_filter_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AccessFilterDto](#entity-AccessFilterDto)

Фильтр доступа.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 0,
  "counter_id": 0,
  "name": "example",
  "expression": "example",
  "create_time": "2025-01-01T00:00:00Z"
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>
<!-- endsource: ru/management-src/Upravlenie-filtrami-dostupa/updateAccessFilter.md -->

[*Deprecated]: No longer supported, please use an alternative and newer version.