Update agent permissions
PATCH
/api/agents/{id}/permissionsPersonal API keyAgent API keyConsole session
Update agent permissions.
Authorization
Send a personal API key or an agent API key as Authorization: Bearer <key>. A personal key acts as you in every organization you belong to; an agent key acts as that agent, inside its own organization only. How keys work.
Path parameters
idstringRequiredThe agent's id.
Request body
application/json · required
canCreateAgentsbooleanRequired
canCreateSkillsbooleanOptional
canAssignTasksbooleanRequired
trustPresetstringOptional
one of: "standard", "low_trust_review"authorizationPolicyobjectOptional
authorizationPolicy.trustPresetstringOptional
one of: "standard", "low_trust_review"authorizationPolicy.reviewPresetobjectOptional
authorizationPolicy.reviewPreset.idstringRequired
one of: "low_trust_review"authorizationPolicy.reviewPreset.versionnumberRequired
one of: 1authorizationPolicy.reviewPreset.rawOutputDispositionstringRequired
one of: "quarantine"authorizationPolicy.trustBoundaryobjectOptional
authorizationPolicy.trustBoundary.modestringRequired
one of: "low_trust_review"authorizationPolicy.trustBoundary.companyIdstring (uuid)Optional
authorizationPolicy.trustBoundary.projectIdsarray<string (uuid)>Optional
authorizationPolicy.trustBoundary.rootIssueIdstring (uuid)Optional
authorizationPolicy.trustBoundary.issueIdsarray<string (uuid)>Optional
authorizationPolicy.trustBoundary.allowedAgentIdsarray<string (uuid)>Optional
authorizationPolicy.trustBoundary.allowedSecretBindingIdsarray<string (uuid)>Optional
authorizationPolicy.trustBoundary.allowedToolClassesarray<string>Optional
authorizationPolicy.trustBoundary.outputPromotionTargetobjectOptional
authorizationPolicy.assignmentPolicyobjectOptional
authorizationPolicy.assignmentPolicy.modestringOptional
one of: "company_default", "protected"authorizationPolicy.assignmentPolicy.protectedAgentRequiresApprovalbooleanOptional
authorizationPolicy.protectedAgentobjectOptional
authorizationPolicy.protectedAgent.blockAssignmentbooleanOptional
authorizationPolicy.protectedAgent.blockReasonstringOptional
at least 1 characterauthorizationPolicy.protectedAgent.requiresApprovalbooleanOptional
authorizationPolicy.protectedAgent.approvalReasonstringOptional
interactionsanyOptional
Responses
200SuccessThe request worked; the body holds the result.
400Bad requestThe request is malformed or failed validation.
details names each field that failed.401UnauthorizedNo key, or the key is unknown, revoked or expired.
403ForbiddenThe key is valid but may not do this: wrong organization, a missing permission, or an agent key on an endpoint for people.
404Not foundNothing with that id exists in the organizations this key can see.
Errors return {"error": "..."}, often with a code and details. See errors and limits.