---
title: "Change a member's administration role or content-permission role (owner/admin only)"
method: PATCH
path: "/groups/{groupId}/members/{userId}"
tags: ["Groups"]
---

# Change a member's administration role or content-permission role (owner/admin only)

`PATCH /groups/{groupId}/members/{userId}`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/groups/{groupId}/members/{userId}`
- Auth: HTTP bearer

## Path parameters

- `groupId` string, uuid, required
- `userId` string, uuid, required

## Request body

- UpdateMemberRequest
  - `role` 'admin' | 'member'
  - `roleId` string, uuid, nullable

## Response `200`

OK

- object
  - `data` object, required
    - `userId` string, uuid, required
    - `role` 'admin' | 'member'
    - `roleId` string, uuid, nullable
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `403`: Target is the owner, or actor tried to change their own role

---

[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)
