Changing a filter
Changes the settings for a specified tag filter.
Request syntax
counterId
: ID of the tag whose filter you want to change.
filterId
: ID of the filter whose settings you want to change.
PUT https://api-metrika.yandex.net/management/v1/counter/{counterId}/filter/{filterId}
In the request body
{
"filter" : {
"attr" : < filter_attribute > ,
"type" : < filter_type > ,
"value" : < string > ,
"action" : < filter_action > ,
"status" : < filter_status > ,
"with_subdomains" : < boolean >
}
}
Parameters | Description |
---|---|
filter | Filter. |
filter | |
attr | Type of data to apply the filter to. Possible values:
|
type | Filter type or action for filter. Possible values:
|
value | Filter value. |
action | Filter type. Possible values:
|
status | Filter status. Possible values:
|
with_subdomains | Filter by subdomains. |
Parameters | Description |
---|---|
filter | Filter. |
filter | |
attr | Type of data to apply the filter to. Possible values:
|
type | Filter type or action for filter. Possible values:
|
value | Filter value. |
action | Filter type. Possible values:
|
status | Filter status. Possible values:
|
with_subdomains | Filter by subdomains. |
Sample request
PUT https://api-metrika.yandex.net/management/v1/counter/{counterId}/filter/{filterId}
Response format
{
"filter" : {
"id" : < int > ,
"attr" : < filter_attribute > ,
"type" : < filter_type > ,
"value" : < string > ,
"action" : < filter_action > ,
"status" : < filter_status > ,
"start_ip" : < string > ,
"end_ip" : < string > ,
"with_subdomains" : < boolean >
}
}
Parameters | Description |
---|---|
filter | Filter. |
filter | |
id | Filter ID. Specify this parameter when changing a tag filter |
attr | Type of data to apply the filter to. Possible values:
|
type | Filter type or action for filter. Possible values:
|
value | Filter value. |
action | Filter type. Possible values:
|
status | Filter status. Possible values:
|
start_ip | First IP address in the range. |
end_ip | Last IP address in the range. |
with_subdomains | Filter by subdomains. |
Parameters | Description |
---|---|
filter | Filter. |
filter | |
id | Filter ID. Specify this parameter when changing a tag filter |
attr | Type of data to apply the filter to. Possible values:
|
type | Filter type or action for filter. Possible values:
|
value | Filter value. |
action | Filter type. Possible values:
|
status | Filter status. Possible values:
|
start_ip | First IP address in the range. |
end_ip | Last IP address in the range. |
with_subdomains | Filter by subdomains. |