Policy
Update a policy
Updates the conditions or selector of an existing policy.
patch/approval/policy/{id}
Path parameters
idinteger required
The ID of the policy.
Request body
Example request
{
"conditions": {
"scope.requested_spec.memory_in_gb": {
"$lte": 4
}
},
"selector": {
"service.spec.id": {
"$eq": 2
}
}
}Response
The operation was successful.
Example response
{
"id": 5678,
"nrn": "organization=1:account=2:namespace=3:application=4",
"name": "Crypto Kong Policies",
"slug": "crypto-kong-policies",
"status": "active",
"conditions": {
"scope.requested_spec.memory_in_gb": {
"$lte": 4
}
},
"selector": {
"service.spec.id": {
"$eq": 2
}
}
}