Agent Permissions
Assign a managed OpenCode config
Changed onAssigns one published config to everyone, one team or one current member. Each of those has at most one config, so assigning another replaces it. A member's own assignment wins over a team's, and a team's over everyone's. For the members it reaches, the file replaces the command, file edit, outside folder, web search and local skill rules of Agent permissions. Requires Managed OpenCode config and agent_permissions.manage with a recent sign-in.
post/v1/org/opencode-config-assignments
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Managed Opencode Config Assign Request required
config, string required
target, union required
lock, boolean
Response
Assigned, replaced, or already assigned.
Managed Opencode Config Assign Response required
result, 'assigned' | 'replaced' | 'updated' | 'exists' required
replaced, string nullable required
assignment, Managed Opencode Config Assignment required
Changes
- warning
added the new
updatedenum value to theresultresponse property for the response status - info
added the new optional request property
lock - info
added the required property
assignment/lockedto the response with the status
- warning