Error on api/v2/conversations/{conversationId}/assign

Hi, im using this request to assign manualy interactions to agents, but sometimes (most of times) i get this error

"body":{"message":"Conversation fd3a6365-dea4-4b40-b845-8be9bfbff118 is pending assignment to agent 548053f0-7151-4fc4-9c12-210cd14b91ac","code":"operation.failed","status":400,"messageWithParams":"Conversation fd3a6365-dea4-4b40-b845-8be9bfbff118 is pending assignment to agent 548053f0-7151-4fc4-9c12-210cd14b91ac","messageParams":{},"contextId":"002145d8-a77e-47a8-a863-6190018df0bf","details":[],"errors":[]}

i want to understand exactly where this needs to be invoked! thanks!

Hello,

I think this error is sent back when you are trying to assign a conversation to an agent (e.g. Agent1) and that the conversation you are trying to assign is already alerting another agent (e.g. Agent2 has received the interaction - "in ringing/alerting" state).
I assume that "548053f0-7151-4fc4-9c12-210cd14b91ac" should correspond to the id of Agent2 (the one who is being already alerted by this conversation).

Regards,

Hi Jerome thanks for taking the time to answer me, you are correct in everything, so i will have to "catch" the interaction an event before the ring and try to asign the interaction there, thank you i will do it!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.