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"
}
Request body
Response
Successful Response
Changes
Changed in 14 of the 42 revisions of this API.31
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○