v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBPoliciesService
Update policy
put/api/v1/deployments/{deploymentId}/policies/{policyId}
Path parameters
deploymentIdstring int64 required
Deployment ID (numeric). Example: 123. Can be found at /deployments, or in your Settings in the web UI.
policyIdstring int64 required
Policy ID (numeric). Example: 456. Can be found at /deployments/{deploymentId}/policies.
Request body
Response
OK
Example response
{
"policyId": "1",
"updatedRule": {
"category": "security",
"confidence": "CONFIDENCE_HIGH",
"cweCategories": [
"CWE-918: Server-Side Request Forgery (SSRF)"
],
"languages": [
"python"
],
"lastChangeAt": "2024-07-29T22:33:37.380Z",
"owaspCategories": [
"A07: Cross-Site Scripting (XSS)"
],
"path": "python.rule.1",
"policyMode": "MODE_BLOCK",
"registryMaintainer": "semgrep",
"rulesets": [],
"severity": "SEVERITY_HIGH",
"source": "SOURCE_COMMUNITY",
"technologies": [
"django",
"flask"
]
}
}