---
title: "Update workspace ACL"
method: PATCH
path: "/api/v2/workspaces/{workspace}/acl"
tags: ["Workspaces"]
---

# Update workspace ACL

`PATCH /api/v2/workspaces/{workspace}/acl`

## Path parameters

- `workspace` string, uuid, required

## Request body

- CodersdkUpdateWorkspaceACL
  - `group_roles` object — 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_roles` object — 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 `204`

No Content

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
