v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBPoliciesV2Service
Apply remediation policies
Strictly applies a candidate remediation policies bundle: the submitted list replaces the current state, and policies absent from it are deleted. Requires the current state_version in the If-Match header; responds 428 when the header is missing and 409 with the current state_version when it is stale. The apply is atomic for the bundle. System-managed policies are unaffected; submitting a policy whose slug collides with one responds 409 with code RESERVED_SLUG.
put/api/policies/v2/deployments/{deploymentId}/remediation-policies
Path parameters
deploymentIdinteger required
The unique numerical identifier for the deployment.
Example:1234
Request body
Example request
{
"bundle": {
"deployment_slug": "my-org",
"policies": [
{
"slug": "block-high-confidence-criticals",
"name": "Block high-confidence criticals",
"active": true,
"filters": {
"mode": "all",
"conditions": [
{
"type": "severity",
"values": [
"critical",
"high"
],
"mode": "any"
}
]
},
"actions": [
{
"type": "block"
}
]
}
]
}
}Response
OK
Example response
{
"bundle": {
"deployment_slug": "my-org",
"policies": [
{
"slug": "block-high-confidence-criticals",
"name": "Block high-confidence criticals",
"active": true,
"filters": {
"mode": "all",
"conditions": [
{
"type": "severity",
"values": [
"critical",
"high"
],
"mode": "any"
}
]
},
"actions": [
{
"type": "block"
}
]
}
]
},
"state_version": "f8e7d6c5"
}