Skip to main content
POST
Preview an atomic rule-configuration change set
Validates a complete desired non-archived rule configuration without changing live resources or incrementing the version. Include every existing rule set exactly once. Existing resources use id; new resources use a unique client_ref. Omitting an existing rule archives it when the preview is applied. Existing rule-set keys must remain unchanged. The response contains the exact plan the server will commit, resource diff, warnings, stable IDs allocated for client_ref values, request hash, expiry time, and a preview token bound to the caller. See Preview and apply.

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

Complete proposed rule configuration

base_rule_configuration_version
integer
required

Current rule_configuration_version from the configuration read endpoint.

Required range: x >= 1
Example:

4

rule_sets
object[]
required

Complete desired rule-set and non-archived rule configuration in execution order.

Minimum array length: 1
source
object

Optional caller category and correlation reference for audit history. Defaults to type api.

Response

OK

base_rule_configuration_version
integer

Configuration version the preview was planned from.

change_id
string<uuid>

Stable preview/change identifier.

diff
object

Resource-level changes between the base and proposed configurations.

expires_at
string<date-time>

Preview capability expiry time.

local_references
object

Mapping from each client_ref to its preview-allocated stable UUID.

preview_token
string

Short-lived actor-bound capability consumed by apply.

proposed_rule_configuration
object

Exact server-computed configuration that apply will commit.

request_hash
string

SHA-256 request hash that must accompany apply.

source
object

Audit source recorded with the preview.

warnings
object[]

Non-blocking advisories found while validating the proposed configuration.