Skip to main content
POST
Apply an atomic rule-configuration change set
Applies the exact server-stored plan identified by preview_token and request_hash. The body cannot replace or modify the proposal. Scrip verifies the actor, organization, program, expiry, request hash, base version, and referenced dependencies before committing the plan in one transaction. Success increments rule_configuration_version exactly once. Create a new preview when a token is expired, already applied, based on a stale version, or invalidated by dependency drift.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

programId
string<uuid>
required

Program ID

Body

application/json

Preview capability and integrity hash

preview_token
string
required

Short-lived opaque capability returned by preview.

Minimum string length: 1
request_hash
string
required

SHA-256 request hash returned by the same preview.

Required string length: 64
Pattern: ^[A-Fa-f0-9]{64}$

Response

OK

change_id
string<uuid>

Applied preview/change identifier.

rule_configuration
object

Complete applied configuration at its new revision.