Nathan_Tossens | 2019-05-08 07:14:39 UTC | #1
Hello there :slight_smile:
Currently trying to transfer a call from an agent to another agent via the API. I'm trying to do this via POSTMAN for the moment for test purpose.
Here is my problem, I call with my mobile, get to a queue, then answer with my agent.
I get the conversation ID via the popup scirpt.
Then I call the get : api/v2/analytics/conversations/ to get the participants.
Aftewards I want to transfer the call so I do a POST on :
api/v2/conversations/calls/{conversationIDFromPopUp}/participants/{userID purpose=agent}/replace
and the body of the post :
{ "userId": "id of a queue or agent" }
the answer I get :
{ "status": 404, "code": "not.found", "message": "Unable to determine the participant.", "contextId": "xxxxxxx", "details": [], "errors": [] }
Any idea?
Thanks in advance.
Kind regards,
NT
tim.smith | 2019-05-09 14:26:36 UTC | #2
What's the actual API endpoint you're calling? The example provided above isn't valid. The parameter after participants/ must be the participant ID, not the user id.
Nathan_Tossens | 2019-05-10 08:50:17 UTC | #3
Indeed was using userID instead of participantID, problem solved :)
Thanks Tim
system | 2019-06-10 08:50:23 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 5099