Skip to main content
PATCH
/
:projectId
/
api
/
v7
/
conversations
/
:conversationId
/
members
/
:userId
/
role
Update Member Role
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/members/:userId/role \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>"
}
'
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

conversationId
string
required
The ID of the conversation.
userId
string
required
The ID of the member whose role is being changed.

Body Parameters

role
string
required
The new role. Accepted values: "admin", "member".

Response

Returns the updated ConversationMember record.

Error Responses

{ "error": "Conversation not found.", "code": "chat/not-found" }
{ "error": "Roles can only be changed in group conversations.", "code": "chat/invalid-type" }
{ "error": "Only group admins can change member roles.", "code": "chat/not-a-member" }
{ "error": "Member not found in this conversation.", "code": "chat/member-not-found" }