Set Channel Leader
Gives the role of leader
to a user in the current channel.
It requires the set-leader
permission.
HTTP Method | URL | Requires Auth |
---|---|---|
|
|
Body Parameters
Key | Example Value | Description |
---|---|---|
|
| The channel ID for which you want to set a leader. |
|
| The user ID that you want to set as the channel leader. |
Example Call
Example Response
Success
Error
Any of the following errors can occur on the endpoint.
Authorization: Requires an authentication token for the request to be made.
Not Allowed: This occurs when the authenticated user doesn't have the
set-leader
permission.User is already a leader: This occurs when the user is already a leader in the channel.
Change Log
Version | Description |
---|---|
0.75.0 | Added. |
Last updated