Policy Groups API
Endpoints
- List Policy Groups - List all policy groups in a project
- Get Policy Group - Retrieve a single policy group by name
- Create Policy Group - Create a new policy group
- Update Policy Group - Update an existing policy group
- Delete Policy Group - Delete a policy group
Authentication
All endpoints require authentication using a Personal API Access Token.
Header
Authorization: Bearer YOUR_TOKEN
Permissions
- Read (list, get):
API_MANAGEMENT+VIEWpermission in the project - Write (create, update, delete):
API_MANAGEMENT+MANAGEpermission in the project - System administrators have full access
Notes and Warnings
- Name-based: All references use the policy group
name, never the internal ID. - Distinct from Global Policies: A policy group is internally a
Policysubtype (_class: "policy-group") but is deliberately handled as its own APIops resource, separate from Global Policies API. It is always persisted withglobal=false. - POST vs PUT Secret Contract Differs:
POST(create) is also used by cross-instance API Promotion and accepts embedded policies whose@SecretDatafields are already encrypted from the source instance — they are not re-encrypted.PUT(update) is a normal update — embedded policy secrets must be sent plaintext and are encrypted before persist. See the Create and Update pages. - Update and Delete Cascade to Embedders:
PUTpushes the change into every API proxy and API proxy group that embeds this policy group by id, keeping their embedded snapshots in sync.DELETEdoes the same before removing the record — this is a cascade-detach, not an in-use guard. - Delete Undeploys: Unlike a plain global policy, a policy group is independently deployed to
gateway workers.
DELETEundeploys it from every running environment before removing the record. - Lightweight Responses: List/Get/Create/Update responses only return
id,nameandtargetPipeline— never the embedded policy list, so no policy secrets are ever echoed back.
Related Documentation
- Global Policies API - Manage standalone, reusable global policies
- Authentication Guide - How to obtain and use API tokens
- Error Handling - Error response formats