latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Governance
Create a new Insight
Creates a new insight with the provided configuration. The endpoint validates required fields (name, code, type, providerIds, category) and tests the Rego code for validity before creation.
post/governance/insights/create
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 created successfully
Example response
{
"labels": "security,compliance"
}