Validate policy configuration

Lint and validate policy JSON configuration files

The easiest way to check your policy file validity is via the policy linter tool in the Guard platform. This editor provides basic linting for your policy. It will check for common errors and provide suggestions for improvement. The tool is run locally in the browser, so any policies or JSON entered in it are not saved anywhere. Note this also means that the contents are lost if you close the page.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects a multipart form.

Response

Policy validation results

passedbooleanOptional

Whether validation passed

errorslist of objectsOptional

List of validation errors and warnings