---
title: "Promote or demote a sub-group thread member"
method: PATCH
path: "/chat/threads/{threadId}/members/{userId}/role"
tags: ["Chat"]
---

# Promote or demote a sub-group thread member

`PATCH /chat/threads/{threadId}/members/{userId}/role`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/chat/threads/{threadId}/members/{userId}/role`
- Auth: HTTP bearer

## Path parameters

- `threadId` string, uuid, required
- `userId` string, uuid, required

## Request body

- UpdateChatThreadMemberRoleRequest
  - `role` 'admin' | 'member', required

## Response `200`

OK

- object
  - `data` object, required
    - `id` string, uuid, required
    - `role` 'admin' | 'member', required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `404`: No such thread, or the caller is not a member

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
