Agent Permissions
Publish a managed OpenCode config
Changed onStores an OpenCode config file under a name, or replaces the one already stored under it. Publishing the same content again changes nothing and answers unchanged; new content raises the version and reaches assigned members the next time their desktop app checks in. The file uses the current OpenCode format and may hold any of its keys. Provider ids and MCP server names that OpenWork uses itself are refused, and so are the OpenCode v1 key names. Up to 262144 bytes and 50 configs per organization. Requires Managed OpenCode config and agent_permissions.manage with a recent sign-in.
put/v1/org/opencode-configs/{name}
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
name, string required
Request body
Managed Opencode Config Publish Request required
config, object required
Response
Created, updated, or unchanged.
Managed Opencode Config Publish Response required
result, 'created' | 'updated' | 'unchanged' required
config, Managed Opencode Config required
Changes
- info
endpoint added
- info