Remove a conference participant
DELETE
/v1/Accounts/{auth_id}/Conferences/{conference_sid}/Participants/{call_sid}
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Conferences/6f1c2b3a-0d4e-4f5a-9b8c-7d6e5f4a3b2c/Participants/1f0e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Conferences/6f1c2b3a-0d4e-4f5a-9b8c-7d6e5f4a3b2c/Participants/1f0e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b \ --header 'Authorization: Basic <credentials>'Removes a participant from a live conference by hanging up its leg on the media server. The participant record is closed when the media server reports the hang-up. Answers 204 with no body; it also answers 204, doing nothing, when the conference has already ended. A conference SID that is not in the account returns 400.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” auth_id
required
string
Your account Auth ID, or the Auth ID of a sub-account you own
Example
AC000000000000000000 conference_sid
required
string
Conference SID (a UUID)
Example
6f1c2b3a-0d4e-4f5a-9b8c-7d6e5f4a3b2c call_sid
required
string
Call SID of the participant’s leg
Example
1f0e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5bResponses
Section titled “ Responses ”Participant removed (or the conference had already ended)
No conference with this SID in the account, or the media server could not be reached
Media type application/json
object
message
What went wrong, e.g. a validation message or the database error.
string
status
Always failed.
string
Example
{ "message": "<QuerySeter> no row found", "status": "failed"}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Media type application/json
string
Example generated
example