Update a user's role in a chat

Updates whether a user is an administrator of the chat. role is required and the user must already be a member. Role attaches to membership rather than to the grant that justifies it, so it survives the user leaving and rejoining. Returns the updated member — @type of me when the user is the caller, otherwise user. Supplying the role they already hold is a no-op that returns them unchanged.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Globally unique identifier for a chat; a c- prefixed string.

string
required

Globally unique identifier for a user; a u- prefixed string.

Body Params

Parameters for updating a member's role within a chat.

string
enum
required

The role of a member within a chat, which determines what management actions they are able to take on the chat.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json