Rule Sets
List rule sets
List a program's rule sets in deterministic order (order ascending, then ID). Every set containing an applicable ACTIVE rule participates; order only determines execution priority.
get/v1/programs/{program_id}/rule-sets
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/programs/{program_id}/rule-sets
- Auth: HTTP bearer
Path parameters
program_idstring uuid required
The program's id.
Query parameters
created_afterstring date-time
Return only records created after this time, RFC 3339.
created_beforestring date-time
Return only records created before this time, RFC 3339.
Response
List of rule sets
Example response
{
"data": [
{
"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"
}
],
"pagination": {
"has_more": true,
"next_cursor": "YWJjMTIz"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.