Skip to main content
PUT
Update a model access policy

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Path Parameters

id
string<uuid>
required

Body

application/json

All fields optional. targets cannot be empty if provided.

name
string
scope_type
string
scope_id
string<uuid> | null
scope_value
string | null
policy_type
enum<string>
Available options:
allowlist,
denylist
targets
object[]
Minimum array length: 1
traffic_type
enum<string>
Available options:
llm,
all
enabled
boolean

Response

The updated policy

id
string<uuid>
required
org_id
string<uuid>
required
name
string
required
scope_type
enum<string>
required
Available options:
org,
team,
user,
project,
api_key,
mcp_server,
agent,
role,
group
policy_type
enum<string>
required
Available options:
allowlist,
denylist
targets
object[]
required
traffic_type
enum<string>
required
Available options:
llm,
all
enabled
boolean
required
scope_id
string<uuid> | null
scope_value
string | null