Skip to main content
POST
Analyze rule-set interactions and configuration impact
Analyzes how rules interact in the current configuration, or in a complete proposed configuration. Send {} to analyze the current revision. To analyze a draft, pass proposed_configuration in the same shape as configuration preview. The analysis validates the draft. It does not create a preview or change the live version. Findings describe possible interactions and suggest changes. They are advisory; they do not prove that two conditions will match the same event.
See Check a draft for analysis and testing before you apply changes.

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.

Body

application/json

Current ({}) or proposed configuration analysis request

Asks Scrip to check a program's rule configuration for problems. Omit proposed_configuration to check the live configuration. Nothing is saved.

focus
object

Limit findings to those involving at least one selected rule set, rule, or client reference.

proposed_configuration
object

Complete configuration to check, in the same shape accepted by the preview endpoint. Omit to check the current configuration.

Response

The findings for the analyzed configuration

The problems Scrip found in a rule configuration, each with a severity and a suggested fix.

active_rule_count
integer

ACTIVE rules participating in runtime interaction analysis.

base_rule_configuration_version
integer

Current configuration version used as the basis for the analysis.

configuration_hash
string

Stable SHA-256 hash of the analyzed current configuration or normalized proposal.

finding_count
integer

Number of findings returned.

findings
object[]

Potential issues and suggested fixes, in a stable order.

grounding
object

Which event field checks the analysis performed.

limits
object

Complexity and response limits applied by the server.

program_id
string<uuid>

Program whose configuration was analyzed.

Example:

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

rule_count
integer

Total ACTIVE and SUSPENDED rules in the analyzed configuration.

source
enum<string>

Configuration source: current or proposed.

Available options:
current,
proposed
truncated
boolean

True when the response limit prevented some findings from being returned.