latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Governance
Update an Insight
Updates an existing insight with the provided configuration. The endpoint validates required fields (name, code, type, providerIds, category) and tests the Rego code for validity before updating.
put/governance/insights/{id}
Path parameters
idstring required
The ID of the insight to update
Request body
Example request
{
"code": "ZmlyZWZseSB7CiAgICBtYXRjaAp9CgptYXRjaCB7CiAgICBpbnB1dC5iYXRjaF90YXJnZXQgPT0gInRlc3QiCn0=",
"type": [
"aws_cloudwatch_event_target"
],
"providerIds": [
"aws_all",
"6616a2dbf4992fc0bab0463f"
],
"labels": "security,compliance",
"category": "Misconfiguration",
"frameworks": [
"SOC2",
"ISO27001"
]
}Response
Insight updated successfully
Example response
{
"labels": "security,compliance"
}