Skip to main content
PUT
Reorder all rule sets
Replaces the complete rule-set order in one change. rule_set_ids must contain every current set exactly once. Pass the current expected_rule_configuration_version from the complete configuration endpoint. A stale version returns 409 rule_configuration_version_conflict without changing the order.
See Move or reorder for changing rule and rule-set order.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

program_id
string<uuid>
required

The program's id.

Body

application/json

Every rule set id in the order you want

The full list of a program's rule set ids in the order you want.

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_set_ids
string<uuid>[]
required

Every current rule-set ID, exactly once, in the desired execution order.

Minimum array length: 1
Example:

Response

The rule sets in their new order, and the new rule_configuration_version

The rule sets in a program after reordering, numbered in order, and the new rule configuration version.

rule_configuration_version
integer

Resulting program rule-configuration version.

Example:

4

rule_sets
object[]

Complete rule-set sequence after renumbering.