---
title: "Update user role"
method: PATCH
path: "/users/role"
tags: ["users"]
---

# Update user role

`PATCH /users/role`

## Request

- Base URL: `https://productlane.com/api/v1`
- URL: `https://productlane.com/api/v1/users/role`
- Auth: HTTP bearer

Update a user's role in your workspace. Valid roles are ADMIN, USER, and VIEWER. Only admins can change roles. Cannot demote the last admin. You cannot change your own role. Authentication is required.

## Request body

- object
  - `membershipId` string, required
  - `role` 'ADMIN' | 'USER' | 'VIEWER', required

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/productlane/apis/productlane-api.md) · [All operations](https://skmtc.dev/productlane/apis/productlane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/productlane/apis/productlane-api/revisions/9325a8425b36?raw)
