Skip to content

Validate policy

POST
/v2/compliance/validate

Validate a policy definition to ensure it conforms to the expected format and rules.

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
policy
required

The policy to validate

string
correlationId

Correlation ID for tracking

string
e271bc5c-f870-44cd-8462-54280d0411f6

The policy validation result indicating whether the policy is valid and any errors found.

object
valid
required

Whether the policy is valid

boolean
true
errors

Validation errors if any

Array<string>
[
"Invalid policy format"
]
correlationId

Correlation ID

string
e271bc5c-f870-44cd-8462-54280d0411f6

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error