Authorizations
Bearer token for authentication
Body
application/json
Request to update an existing policy
A policy that can be applied to materials in Chainloop to validate compliance with specific requirements
Example:
{
"metadata": {
"name": "name",
"description": "description",
"annotations": { "key": "annotations" },
"display_name": "display_name"
},
"kind": "kind",
"api_version": "api_version",
"spec": {
"path": "path",
"auto_match": { "path": "path", "embedded": "embedded" },
"inputs": [
{
"default": "default",
"name": "name",
"description": "description",
"required": true
},
{
"default": "default",
"name": "name",
"description": "description",
"required": true
}
],
"policies": [
{
"path": "path",
"kind": "kind",
"embedded": "embedded"
},
{
"path": "path",
"kind": "kind",
"embedded": "embedded"
}
],
"type": "type",
"embedded": "embedded"
}
}
Base64 raw representation of the policy schema in JSON, YAML, or CUE format
Response
A successful response.
Response for the policy update request