Entity hook
Update an entity hook action
Updates an entity hook action.
patch/entity_hook/action/{id}
Path parameters
idstring uuid required
The ID of the entity hook action to delete.
Request body
Example request
{
"when": "before",
"type": "hook",
"on": "create"
}Response
The entity hook action was updated.
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"nrn": "organization=1:account=2:namespace=3:application=4",
"entity": "scope",
"action": "scope:create",
"dimensions": {
"environment": "production",
"country": "us"
},
"on_policy_success": "manual",
"on_policy_fail": "manual",
"when": "before",
"type": "hook",
"on": "create",
"policies": [
{
"id": 5678,
"nrn": "organization=1:account=2:namespace=3:application=4",
"name": "Crypto Kong Policies",
"conditions": {
"scope.requested_spec.memory_in_gb": {
"$lte": 4
}
}
}
]
}