Delete a policy by ID
Changed ondelete/v1/workspaces/{workspaceId}/policies/{policyId}
Request
- Base URLhttp://localhost:3001/api
- URLhttp://localhost:3001/api/v1/workspaces/{workspaceId}/policies/{policyId}
- Auth
- API key in header X-API-Key
- or HTTP bearer
Path parameters
workspaceIdstring required
ID of the workspace
policyIdstring required
ID of the policy
Response
Policy deleted
Example response
{
"rules": [
{
"verification": {
"metrics": [
{
"failureCondition": "result.statusCode == 500",
"intervalSeconds": 30,
"provider": {
"url": "http://{{ .resource.name }}.{{ .environment.name }}/health"
},
"successCondition": "result.statusCode == 200"
}
]
}
}
]
}Changes
- warning
added the new
queuedenum value to the////response property for the response status - warning
added the new
queuedenum value to the////response property for the response status
- warning
- info
the
response's property default value100was removed for the status
- info