PolicyValidations

Validate Cedar policy content against a schema

post/zones/{zone_id}/policy-validations

Path parameters

zone_idstring required

The zone identifier

Headers

X-API-Versionstring

API version header (date-based, e.g. 2026-02-01)

X-Client-Request-IDstring uuid

Unique request identifier specified by the originating caller and passed along by proxies.

Request body

cedar_jsonobject nullable

Cedar policy in JSON representation. Mutually exclusive with cedar_raw.

cedar_rawstring nullable

Cedar policy in human-readable Cedar syntax. Mutually exclusive with cedar_json.

schema_versionstring required

Schema version to validate against. Must not be archived.

Response

Validation result

validboolean required

True if the policy passes schema validation with no errors.

schema_versionstring required

Schema version validated against (echo back).

Changes

Changed in 2 of the 23 revisions of this API.11

    • added the optional property errors/items/code to the response with the 200 status

      response-optional-property-added

    • added the optional property errors/items/data to the response with the 200 status

      response-optional-property-added

    • added the optional property errors/items/help to the response with the 200 status

      response-optional-property-added

    • added the optional property errors/items/range to the response with the 200 status

      response-optional-property-added

    • added the optional property errors/items/severity to the response with the 200 status

      response-optional-property-added

    • added the optional property warnings/items/code to the response with the 200 status

      response-optional-property-added

    • added the optional property warnings/items/data to the response with the 200 status

      response-optional-property-added

    • added the optional property warnings/items/help to the response with the 200 status

      response-optional-property-added

    • added the optional property warnings/items/range to the response with the 200 status

      response-optional-property-added

    • added the optional property warnings/items/severity to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added