---
title: "Set Member Role"
method: PATCH
path: "/apps/{app_id}/members/{user_id}"
---

# Set Member Role

`PATCH /apps/{app_id}/members/{user_id}`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/apps/{app_id}/members/{user_id}`
- Auth: none declared

## Path parameters

- `app_id` string, uuid, required
- `user_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

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

## Response `200`

Successful Response

- MemberResponse
  - `user_id` string, uuid, required
  - `username` string, required
  - `role` string, required
  - `status` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xhostd/apis/xhostd-public.md) · [All operations](https://skmtc.dev/xhostd/apis/xhostd-public/llms.txt) · [OpenAPI document](https://skmtc.dev/xhostd/apis/xhostd-public/revisions/bf439c4d1789?raw)
