---
title: "Add Channel Moderator"
slug: "add-channel-moderator"
updated: 2026-06-08T12:46:40Z
published: 2026-06-08T12:46:40Z
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Channel Moderator

Post/api/v1/channels.addModerator

Assign the `moderator` role to a channel member. See [Room Roles](https://docs.rocket.chat/docs/room-roles) for details about the roles.

Permission required: `set-moderator`

### Changelog

| Version | Description |
| --- | --- |
| 0.49.4 | Added |

Header parametersX-Auth-TokenstringRequired

The `authToken` of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired

The `userId` of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ

Body parameters<select class='api-response-data' aria-label='Media type'><option value='628b52cc-ca07-4ad5-baf9-38a049b9898d'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='e05254e0-0301-4cc0-87c4-fd4e30348636'>Example</option>
</select>Example

```json
{
  "roomId": "WDuJLFkjwk6L7LdFC",
  "userId": "b66oZ8i9pkeSko33v"
}
```

object  roomIdstring    Required

The channel ID.

userIdstring    Required

The user ID that you want to set as the moderator.

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='351a090c-3a13-437b-9001-172751c730fb'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='e8eced0f-b5b6-448d-b72e-8b777cfa8aeb'>Success</option>
</select>Success

```json
{
  "success": true
}
```

object  successboolean    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='dbd73e67-414a-452f-80a0-dfdbb1b584a4'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='e6a23ef3-b3a7-4a65-87ee-f742ea541429'>User is already a moderator</option>
</select>User is already a moderator

```json
{
  "success": false,
  "error": "User is already a moderator [error-user-already-moderator]",
  "errorType": "error-user-already-moderator"
}
```

object  successboolean    
errorstring    
errorTypestring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='dd52f1d7-4c8a-4f2e-9f3b-fd58a536a11c'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='98e498ed-41c8-4b9f-b416-57284373626a'>Authorization Error</option>
</select>Authorization Error

```json
{
  "status": "error",
  "message": "You must be logged in to do this."
}
```

object  statusstring    
messagestring
