latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
Policies
Create Policy Attachment
Create a new policy attachment.
Example Request:
curl -X POST "http://localhost:4000/policies/attachments" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"policy_name": "global-baseline",
"scope": "*"
}'
Example with team-specific attachment:
curl -X POST "http://localhost:4000/policies/attachments" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"policy_name": "healthcare-compliance",
"teams": ["healthcare-team", "medical-research"]
}'
Example Response:
{
"attachment_id": "123e4567-e89b-12d3-a456-426614174000",
"policy_name": "global-baseline",
"scope": "*",
"teams": [],
"keys": [],
"models": [],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
post/policies/attachments
Request body
Response
Successful Response