Hi Sylvain,
I'm sure this is possible, though I haven't tested this myself, I imagine something like
post /api/v2/conversations/calls/{conversationId}/participants/{participantId}/replace would allow for that.
But there may be an easier way to solve for this. Just have the agents as a members of the Emergency Queue, and ensure all calls to the Emergency Queue have a really high priority, like set it to over 9000. And that way whenever there is an call in the Emergency Queue and the agent goes available they will always get the longest waiting Emergency Queue Call first, no manual buttons or external apps or APIs required.
------------------------------
Anton Vroon
------------------------------