Skip to main content
PUT
Reorder all rules in a rule set
Atomically replaces one set’s complete non-archived rule order. rule_ids must contain every ACTIVE and SUSPENDED rule in that set exactly once. An empty list is valid for an empty set. Pass the current expected_rule_configuration_version. The response contains the renumbered 1..N sequence and resulting version.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

programId
string<uuid>
required

Program ID

ruleSetId
string<uuid>
required

Rule set ID

Body

application/json

Complete ordered rule ID list

expected_rule_configuration_version
integer
required

Current rule_configuration_version from the configuration read endpoint. A stale value rejects the request.

Required range: x >= 1
Example:

3

rule_ids
string<uuid>[]
required

Every ACTIVE and SUSPENDED rule ID in the set, exactly once, in the desired order. Empty is valid only for an empty set.

Response

OK

rule_configuration_version
integer

Resulting program rule-configuration version.

Example:

4

rules
object[]

Complete rule sequence for the set after renumbering.