Skip to main content

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 order are 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 order must 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

Rules reordered