Skip to main content
PATCH
Update a rule set
Updates a rule set’s display name. The key cannot change. To reposition a set, use the move rule set endpoint. Successful changes include the resulting rule_configuration_version. Requests that change nothing keep the current version.
See Rule sets for assignment and execution 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.

rule_set_id
string<uuid>
required

The rule set's id.

Body

application/json

Mutable rule-set fields

Renames a rule set. The key cannot change.

name
string

Updated operator-facing display name.

Example:

"Holiday Promotion 2026"

Response

Rule set updated

A rule set: an ordered group of rules in a program.

created_at
string<date-time>

When this rule set was created.

Example:

"2027-01-15T10:30:00Z"

id
string<uuid>

The id of the rule set. Use it in rule_set_id fields and paths.

Example:

"d4735e3a-265e-4f16-b1a5-4c8e9d6f0a04"

key
string

Immutable program-scoped key.

Example:

"holiday-promo"

name
string

Operator-facing display name.

Example:

"Holiday Promotion"

order
integer

Execution position among participating sets; lower executes first. This does not control participation, stacking, replacement, or suppression.

Example:

1

program_id
string<uuid>

Program that owns this rule set.

Example:

"8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01"

rule_configuration_version
integer

Resulting program rule-configuration revision. Present on mutation responses.

Example:

4

updated_at
string<date-time>

When this rule set was last modified.

Example:

"2027-01-15T10:30:00Z"