---
title: "PATCH /api/workspaces/users/{workspace_user_id}/"
method: PATCH
path: "/api/workspaces/users/{workspace_user_id}/"
tags: ["Workspaces"]
---

# PATCH /api/workspaces/users/{workspace_user_id}/

`PATCH /api/workspaces/users/{workspace_user_id}/`

Updates the existing workspace user related to the provided `workspace_user_id` param if the authorized user has admin rights to the related workspace.

## Path parameters

- `workspace_user_id` integer, required

## Request body

- PatchedUpdateWorkspaceUser
  - `permissions` string — The permissions that the user has within the workspace.

## Response `200`

- WorkspaceUser
  - `id` integer, required
  - `name` string, required — User defined name.
  - `email` string, required — User email.
  - `workspace` integer, required — The workspace that the user has access to.
  - `permissions` string — The permissions that the user has within the workspace.
  - `created_on` string, date-time, required
  - `user_id` integer, required — The user that has access to the workspace.
  - `to_be_deleted` boolean, required — True if user account is pending deletion.
  - `two_factor_auth` string, required

## Other responses

- `400`
- `404`

---

[API](https://skmtc.dev/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.dev/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/f3396317d932/schema)
