POST /zones/{zone_id}/token_validation/rules/bulk

Create zone token validation rules.

A request can create multiple Token Validation Rules.

Servers

Path parameters

Name Type Required Description
zone_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
[] Array Yes
[].selector Object No

Select operations covered by this rule.

For details on selectors, see the Cloudflare Docs.

[].selector.include[] Array No

Select all matching operations.

[].selector.include[].host[] Array No

Included hostnames.

[].selector.exclude[] Array No

Ignore operations that were otherwise included by include.

[].selector.exclude[].operation_ids[] Array No

Excluded operation IDs.

[].action String No

Action to take on requests that match operations included in selector and fail expression.

Valid values:

  • "log"
  • "block"
[].description String No

A human-readable description that gives more details than title.

[].expression String No

Rule expression. Requests that fail to match this expression will be subject to action.

For details on expressions, see the Cloudflare Docs.

[].enabled Boolean No

Toggle rule on or off.

[].title String No

A human-readable name for the rule.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.