Skip to main content
PUT
Attach policies to an agent
Sets the agent’s attached policyIds. The effective set the PDP evaluates is these plus the always-on enterprise baseline (latch-0 … latch-5). See Policies.

Authorizations

Authorization
string
header
required

Workspace API key (ak_live_…).

Path Parameters

id
string
required

Body

application/json
policyIds
string[]
required

Response

200 - application/json

The updated agent.

id
string
name
string
source
enum<string>
Available options:
builtin,
url,
github,
fork
status
string
baseUrl
string
apiKeyMasked
string
Example:

"ak_live_••••4f2a"

categories
string[]
tools
string[]
policyIds
string[]
runtime
object
createdAt
integer
updatedAt
integer