---
title: "Gán quyền cho thành viên"
method: PUT
path: "/rooms/{roomId}/members/{userId}/role"
tags: ["Rooms"]
---

# Gán quyền cho thành viên

`PUT /rooms/{roomId}/members/{userId}/role`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/rooms/{roomId}/members/{userId}/role`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `posts-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/rooms/:roomId/members/:userId/role/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `roomId` integer, required
- `userId` string, required

## Request body

- FireAntApiModelsRoomsRoomAssignmentRequest: Yêu cầu gán quyền cho thành viên
  - `role` integer: Role

## Response `200`

Thành công

- object

## Other responses

- `400`: Có lỗi khi thực hiện thao tác

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
