latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Guardrails
Update a Guardrail Rule
Updates an existing Guardrail Rule and its Notifications
patch/guardrails/{ruleId}
Request body
Example request
{
"id": "507f1f77bcf86cd799439012",
"accountId": "507f1f77bcf86cd799439012",
"createdBy": "John Doe",
"criteria": {
"resource": {
"actions": [
"create"
]
}
},
"notificationId": "507f1f77bcf86cd799439012"
}Response
Guardrail Rule Updated Successfully
Example response
{
"id": "507f1f77bcf86cd799439011",
"name": "Enforce S3 Encryption",
"enabled": true,
"updatedAt": "2024-11-11T10:00:00Z"
}