curl --request DELETE \
--url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/leaveLeave a group or space conversation
curl --request DELETE \
--url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/leavetype: "direct") cannot be left.
For group conversations, if the caller is the last admin, they must promote another member before leaving. The caller is evicted from the real-time room immediately.
{ "message": "Left conversation." }
Not Found — 404
{ "error": "Conversation not found.", "code": "chat/not-found" }
Cannot Leave DM — 400 Bad Request
{ "error": "Direct conversations cannot be left.", "code": "chat/cannot-leave-dm" }
Not a Member — 400 Bad Request
{ "error": "You are not an active member of this conversation.", "code": "chat/not-a-member" }
Last Admin — 400 Bad Request
{ "error": "You are the last admin. Promote another member before leaving.", "code": "chat/last-admin" }