Skip to main content
PUT
Update an MCP policy's name, servers or rules

Authorizations

Authorization
string
header
required

A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.

Scopes

openid

Issue an OIDC ID token identifying the caller.

profile

Read the caller's basic profile claims.

email

Read the caller's email address.

Path Parameters

id
string
required

Identifier, a UUID

Body

application/json
mcp_server_ids
string[] | null

Replaces the server list. Omitted = unchanged.

name
string | null
rules
object[] | null

Replaces the rule list. Rules with an id are kept, the rest created, and stored rules left out are deleted. Omitted = unchanged.

Response

The updated MCP policy

created_at
string
required
created_by
string
required
id
string
required
is_baseline
boolean
required
mcp_server_ids
string[]
required
name
string
required
rules
object[]
required
updated_at
string
required
updated_by
string
required