POST /zones/{zone_id}/token_validation/rules
Create a token validation rule.
Servers
- https://api.cloudflare.com/client/v4
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 |
|---|---|---|---|
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 |
selector.exclude[].operation_ids[] |
Array | No |
Excluded operation IDs. |
action |
String | No |
Action to take on requests that match operations included in Valid values:
|
description |
String | No |
A human-readable description that gives more details than |
expression |
String | No |
Rule expression. Requests that fail to match this expression will be subject to 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
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.