Reorder rules
POST/v2/endpoints/:endpoint/rules/reorder
Reorders the existing mock rules by priority without modifying the rule content.
How It Works:
- Provide an ordered list of rule IDs in
order - Rules listed in
orderare moved to the top in the exact sequence provided - Any rules not listed keep their relative order and are appended after the reordered block
Validation:
- All rule IDs in
ordermust exist for the endpoint
Use Cases:
- Promote a rule to higher priority
- Restore a known execution order after experiments
Response: Returns the count of rules that were reordered.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Rules reordered
Bad Request - Payload validation failed.
Unauthenticated - API key is missing or invalid.
Not Found - The requested resource does not exist.
Internal Server Error - An unexpected error occurred.