Skip to content

Validate policy

POST
/v2/compliance/validate

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

object
policy
required

The policy to validate

string
correlationId

Correlation ID for tracking

string
82c4fce1-d2c7-48cb-a647-6993dbe37819

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
82c4fce1-d2c7-48cb-a647-6993dbe37819

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error