This endpoint is used to create a rate limiter for a specific project within an account.
The request body should be in JSON format and include the following parameters:
name (string): The name of the rate limiter.
action (string): The action to be taken when the rate limit is reached.
isActive (boolean): Indicates whether the rate limiter is active.
condition (object): An object containing the condition for the rate limiter, including fieldName, predicate, value, and type.
periodInSec (integer): The time period in seconds for the rate limiter.
limit (integer): The limit for the rate limiter.
The response for this request is a JSON object with the following schema:
id (string): The unique identifier of the project.
customerId (string): The unique identifier of the customer associated with the project.
name (string): The name of the project.
url (string): The URL of the project.
siteKey (string): The site key of the project.
serverKey (string): The server key of the project.
isProtected (boolean): Indicates whether the project is protected.
rules (object): An object containing order and rules arrays.
rateLimits (object): An object containing order and rateLimits arrays.
phishingInfo (object): An object containing originalUrl, action, and allowedUrls arrays.
responseExtraFields (array): An array of extra fields in the response.
updatedAt (string): The timestamp when the project was last updated.
createdAt (string): The timestamp when the project was created.