Skip to main content
Update Member Role
Updates the role of an active member in a group conversation. Only group conversations have roles — this endpoint returns a 400 for direct and space conversations. The caller must be an active admin.

Path Parameters

string
required
The ID of the conversation.
string
required
The ID of the member whose role is being changed. Your own id is refused (400 chat/own-member-id): an admin can’t change their own role. Your own membership is /chat/conversations/:conversationId/members/me.

Body Parameters

string
required
The new role. Accepted values: "admin", "member".
string
Service key only, and required with one: the user this request acts as. Must be an active admin of the conversation. A user token always acts as its own user and must not send it (400 chat/acting-user-not-allowed).

Response

Returns the updated ConversationMember record.

Error Responses

userId is the acting user (the token’s user, or the user named by actingUserId). This route acts on another member; check your own membership with GET /chat/conversations/:conversationId/members/me and leave with DELETE /chat/conversations/:conversationId/members/me.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
A service key sent no actingUserId.
The acting user isn’t an active member of the conversation.
The acting user is a member of the group without the admin role.