Create a rate limit
Deprecated POST
/zones/{zone_id}/rate_limits https://api.cloudflare.com/client/v4
Creates a new rate limit for a zone. Refer to the object definition for a list of required attributes.
Parameters
path Path Parameters
| Name | Type |
|---|---|
zone_id
required
| type FirewallIdentifier = string |
Request Body
application/json
required
{
action:FirewallAction ;
match:FirewallMatch ;
period:FirewallPeriod ;
threshold:FirewallThreshold ;
}
action:
match:
period:
threshold:
}
Responses
200 application/json
Create a rate limit response.
type FirewallRatelimitResponseSingle = type FirewallApiResponseSingle = never & { result?: FirewallRateLimits ; }
Client Errors
4XX application/json
Create a rate limit response failure.
type FirewallRatelimitResponseSingle = type FirewallApiResponseSingle = never & { result?: FirewallRateLimits ; } & interface FirewallApiResponseCommonFailure {
errors:FirewallMessages ;
messages:FirewallMessages ;
result: null;
success: false;
}
errors:
messages:
result: null;
success: false;
}