cURL
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>" } '
Change a member’s role in a group conversation
admin
"admin"
"member"
Not Found — 404
{ "error": "Conversation not found.", "code": "chat/not-found" }
Invalid Type — 400 Bad Request
{ "error": "Roles can only be changed in group conversations.", "code": "chat/invalid-type" }
Forbidden — 403
{ "error": "Only group admins can change member roles.", "code": "chat/not-a-member" }
Member Not Found — 404
{ "error": "Member not found in this conversation.", "code": "chat/member-not-found" }