Skip to main content
POST
Validate a jq policy condition

Authorizations

x-api-key
string
header
required

Body

application/json

A fail-closed jq policy-condition check — compile and (with a sample_context) sample-evaluate a condition without persisting it.

condition
TemplatedText · object | null

A renderable text: its source plus the parameters its render takes.

EXACTLY ONE source is set — content (the text inline) or id (the id of a stored resource holding the text); neither and both are refused at construction. kwargs are the render parameters for the TEXT and apply either way, so moving a text from inline to stored (or back) leaves its parameters untouched.

sample_context
Sample Context · object | null

Response

Success.

data
ConditionCheckResult · object
required

A jq policy-condition validation verdict. result is the sampled allow/deny boolean, or null when no sample context was evaluated.