Just noticed that our internal SvelteKit dashboard keeps failing when trying to kick a single agent out of a conference bridge. The Conversations API docs say i should hit the remove participant endpoint, but the server route keeps throwing a 409 Conflict.
here’s the fetch call i’m using in the $server route:
const res = await fetch(${baseUrl}/api/v2/conversations/voice/${convId}/participants/${partId}/actions/remove, {
method: ‘DELETE’,
headers: { ‘Authorization’: Bearer ${token} }
})
The response body just says {"errorCode":"conflict","message":"Participant cannot be removed at this time"}. It’s a standard voice conference. No active recording. The target agent is definitely idle on their end. Maybe the conference resource needs a different action path? Or do i need to pass a specific action payload instead of a bare DELETE?
already tried swapping to POST with {"action": "remove"} but that returns a 400 Bad Request. The widget’s timeout handler fires before i can even log the full headers.