Agent Permissions

Assign a managed OpenCode config

Changed on

Assigns 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 URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

ManagedOpencodeConfigAssignRequest required
config, string required
target, union required
lock, boolean

Response

Assigned, replaced, or already assigned.

ManagedOpencodeConfigAssignResponse required
result, 'assigned' | 'replaced' | 'updated' | 'exists' required
replaced, string nullable required
assignment, ManagedOpencodeConfigAssignment required

Changes

    • warning

      added the new updated enum value to the result response property for the response status

    • info

      added the new optional request property lock

    • info

      added the required property assignment/locked to the response with the status