Rule Sets

Get a rule set

Retrieve a program-owned rule set by its stable ID. The key is immutable, and the resource has no delete or archive operation.

get/v1/programs/{program_id}/rule-sets/{rule_set_id}

Request

  • Base URL: https://api.scrip.dev
  • URL: https://api.scrip.dev/v1/programs/{program_id}/rule-sets/{rule_set_id}
  • Auth: HTTP bearer

Path parameters

program_idstring uuid required

The program's id.

rule_set_idstring uuid required

The rule set's id.

Response

Rule-set details

created_atstring date-time

When this rule set was created.

idstring uuid

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

keystring

Immutable program-scoped key.

namestring

Operator-facing display name.

orderinteger

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

program_idstring uuid

Program that owns this rule set.

rule_configuration_versioninteger

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

updated_atstring date-time

When this rule set was last modified.

Example response

{
  "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.