Skip to main content
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 old policies[].resourcePolicy wrapper. Important fields:
  • name: unique policy name within the organization
  • mcp_server_id: target MCP server
  • application_ids: agents/applications this policy applies to
  • status: DRAFT, ACTIVE, INACTIVE, or ARCHIVED
  • rules: array of rule objects using authorized, actions, roles_groups, and optional condition
Example:
For a comprehensive guide, see Manage Access Policies.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response