Skip to main content
POST
Move a rule set
Moves one rule set to first, last, before, or after another set. Relative placement requires the sibling’s stable ID in reference_id. The request is guarded by expected_rule_configuration_version. Scrip returns the complete renumbered set order 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

Semantic destination

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

position
object
required

Semantic destination for the rule set.

Response

OK

rule_configuration_version
integer

Resulting program rule-configuration version.

Example:

4

rule_sets
object[]

Complete rule-set sequence after renumbering.