I’m trying to transfer an active call to a specific queue using the Conversations API. The documentation says I should use PATCH on the participants endpoint to add the queue as a new participant, but I keep getting a 400 Bad Request.
Here is the JSON payload I’m sending:
{
"participants": [
{
"id": "current-participant-id",
"action": "transfer"
},
{
"id": "queue:12345",
"action": "add"
}
]
}
The error response just says:
Invalid participant action for type Queue. Transfer action is not supported.
I’ve tried setting the action to add for the queue and transfer for the current user, but it fails. If I remove the transfer action from the current user, the call just gets a second participant added without transferring the media.
Is there a specific way to format the participant objects for a queue transfer? Or do I need to use the transfer endpoint directly instead of the participants PATCH?
Also, I’m doing this via a Script using GetRESTProxy. The script runs without error, but the HTTP response code is 400.