Sandboxes
Grant access to a sandbox
Gives a Workspace member, an OpenCode Server, or every current Workspace member permissions on the sandbox. For subject_type workspace, subject_id may be omitted and must match this Workspace if supplied. One grant per subject; change permissions by deleting and granting again. Requires manage.
POST
Grant access to a sandbox
Headers
Path Parameters
Body
application/json
- Option 1
- Option 2
Required array length:
1 - 5 elementsrun_commands: commands. files: files. terminal: terminals. previews: reserved; sandboxes have no previews. manage: all permissions, lifecycle, settings and access grants.
Available options:
run_commands, files, terminal, previews, manage Response
Access granted
Grant access to a sandbox