---
title: "Updates user role"
method: POST
path: "/workspaces/{workspaceId}/users/role"
tags: ["Workspaces"]
---

# Updates user role

`POST /workspaces/{workspaceId}/users/role`

Updates the workspace user role of a user that matches the parameters. Only succeeds if the requesting user has admin permissions in the workspace.

## Path parameters

- `workspaceId` string, required

## Request body

- ChangeRole — Parameters for changing a workspace user role.
  - `email` string, required — Email of the user.
  - `newRole` 'Admin' | 'DocMaker' | 'Editor', required

## Response `200`

User's info that was updated.

- ChangeRoleResult — The result of changing a user's workspace user role.
  - `roleChangedAt` string, date-time, required — Timestamp for when the user's role last changed in this workspace.

## Other responses

- `401` — The API token is invalid or has expired.
- `403` — The API token does not grant access to this resource.
- `404` — The resource could not be located with the current API token.
- `429` — The client has sent too many requests.

---

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