Workspaces

Update workspace ACL

Changed on
patch/api/v2/workspaces/{workspace}/acl

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/workspaces/{workspace}/acl
  • Auth
    API key in header Coder-Session-Token

Path parameters

workspacestring uuid required

Workspace ID

Request body

group_rolesobject

GroupRoles is a mapping from valid group UUIDs to the workspace role they should be granted. To remove a group from the workspace, use "" as the role (available as a constant named codersdk.WorkspaceRoleDeleted)

user_rolesobject

UserRoles is a mapping from valid user UUIDs to the workspace role they should be granted. To remove a user from the workspace, use "" as the role (available as a constant named codersdk.WorkspaceRoleDeleted)

Response

No Content

Changes