Publish Policy
Policies
Create or Update Policy
POST
Publish Policy
This endpoint creates a policy in the v2 policy service.
v2 request shape
The v2 API accepts a single policy object. It no longer uses the oldpolicies[].resourcePolicy wrapper.
Important fields:
name: unique policy name within the organizationmcp_server_id: target MCP serverapplication_ids: agents/applications this policy applies tostatus:DRAFT,ACTIVE,INACTIVE, orARCHIVEDrules: array of rule objects usingauthorized,actions,roles_groups, and optionalcondition
For a comprehensive guide, see Manage Access Policies.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
200 - application/json
Successful Response