Filters

filters

Methods

Delete Filters -> Envelope<Array<>>
Deprecated
delete/zones/{zone_id}/filters

Deletes one or more existing filters.

Update Filters -> Envelope<Array<>>
Deprecated
put/zones/{zone_id}/filters

Updates one or more existing filters.

Create Filters -> Envelope<Array<>>
Deprecated
post/zones/{zone_id}/filters

Creates one or more filters.

Delete A Filter -> Envelope<>
Deprecated
delete/zones/{zone_id}/filters/{filter_id}

Deletes an existing filter.

Security
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example: X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194

Accepted Permissions (at least one required)

Firewall Services Write

Parameters
zone_id: string

Identifier

filter_id: string

The unique identifier of the filter.

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

Request example
200Example
Get A Filter -> Envelope<>
Deprecated
get/zones/{zone_id}/filters/{filter_id}

Fetches the details of a filter.

List Filters -> V4PagePaginationArray<>
Deprecated
get/zones/{zone_id}/filters

Fetches filters in a zone. You can filter the results using several optional parameters.

Update A Filter -> Envelope<>
Deprecated
put/zones/{zone_id}/filters/{filter_id}

Updates an existing filter.

Domain types

FirewallFilter = { id, description, expression, 2 more... }