Delete a SIP user
DELETE
/v1/Accounts/{auth_id}/Sip/endpoint/{endpoint_id}
const url = 'https://api.siprtc.io/v1/Accounts/example/Sip/endpoint/1';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/example/Sip/endpoint/1 \ --header 'Authorization: Basic <credentials>'Deletes one of your SIP users and removes it from the SIP registrar. Devices registered with it can no longer register or place calls.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” auth_id
required
string
Auth ID of your account.
endpoint_id
required
integer
ID of the SIP user.
Responses
Section titled “ Responses ”Deleted ({“status”: “endpoint deleted”}).
Media type application/json
object
status
Short description of what happened, for example “endpoint updated”, “endpoint deleted”, “sip domain updated” or “domain deleted”.
string
Example
{ "status": "endpoint updated"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Media type application/json
string
Example generated
exampleEndpoint_id is not a positive number (body “Invalid Request”).
Media type application/json
string
Example generated
exampleNo SIP user with this ID on your account, or the delete failed.
Media type application/json
object
errors
The error detail.
object
body
Error text as reported by the data store, for example “record not found”.
string
Example
{ "errors": { "body": "record not found" }}