---
title: "Update Member"
method: PATCH
path: "/api/workspaces/{slug}/members/{member_user_id}"
tags: ["Workspaces"]
---

# Update Member

`PATCH /api/workspaces/{slug}/members/{member_user_id}`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/workspaces/{slug}/members/{member_user_id}`
- Auth: HTTP bearer

## Path parameters

- `slug` string, required
- `member_user_id` string, required

## Headers

- `x-kolens-user-id` string, nullable

## Request body

- ChangeRoleRequest
  - `role` 'admin' | 'billing' | 'member', required

## Response `200`

Successful Response

- MemberOut
  - `id` string, required
  - `user_id` string, required
  - `role` 'admin' | 'billing' | 'member', required
  - `invited_by_user_id` string, nullable
  - `joined_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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