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}
Request
- Base URLhttps://api.firefly.ai/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}Changes
No recorded changes to this operation across all 1 revision of this API.