POST
/
v1
/
policies
/
validate
Validate a policy attachment
curl --request POST \
  --url https://api.app.chainloop.dev/v1/policies/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "policy_attachment": "<string>"
}'
{
  "valid": true,
  "validation_errors": [
    "validation_errors",
    "validation_errors"
  ]
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Body

application/json

Request to validate a policy attachment

Response

200
application/json

A successful response.

Response for the policy attachment validation request