Skip to main content

Update a rule

POST 

/api/v2/rules/update

This endpoint allows you to update an existing rule. The updated rule must include at least one time-based criterion; otherwise, the request will fail with an appropriate error message. Additionally, the rule must define either a limiter or a pattern—if neither is provided, a 400 Bad Request error will be returned. A valid rule must also specify a name and an associated action. Upon successful validation, the rule is saved to the database, and a success response is returned.

Request

Responses

Rule successfully updated