Rule Sets
Move a rule set
Move one rule set to the first or last position, or before or after another rule set.
post/v1/programs/{program_id}/rule-sets/{rule_set_id}/move
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/programs/{program_id}/rule-sets/{rule_set_id}/move
- Auth: HTTP bearer
Path parameters
program_idstring uuid required
The program's id.
rule_set_idstring uuid required
The rule set's id.
Headers
Idempotency-Keystring
A key you choose to make this request safe to retry: 1 to 255 printable ASCII characters. Send the same key with the same request to get the first response again, marked Idempotent-Replayed: true. Routes that return a secret once, and claim links, do not replay a response. Event ingest uses the key as the event's identity.
Request body
Example request
{
"expected_rule_configuration_version": 3,
"position": {
"placement": "before",
"reference_id": "c9f0f895-fb98-4b39-9f86-1e5a0d3e2b04"
}
}Response
The rule sets in their new order, and the new rule_configuration_version
Example response
{
"rule_configuration_version": 4,
"rule_sets": [
{
"created_at": "2027-01-15T10:30:00Z",
"id": "d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04",
"key": "holiday-promo",
"name": "Holiday Promotion",
"order": 1,
"program_id": "8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01",
"rule_configuration_version": 4,
"updated_at": "2027-01-15T10:30:00Z"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.