Delete a SIP Trunk
Endpoint
POST /api/v0.0.1/siptrunk/delete?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
trunkname | Required | String | SIP trunk name.
Example: “trunkname”:”SIP”
Example: “trunkname”: “SIP1,SIP2”
|
Examples
Request Example
POST /api/v0.0.1/siptrunk/delete?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“trunkname”: “to-108-16″
}
POST /api/v0.0.1/siptrunk/delete?token=813b621cfe8eecf445a2ce1f4a079ffe&type=xml HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
<?xml version=”1.0″ encoding=”UTF-8” ?>
<xml>
<trunkname>to-108-16</trunkname>
</xml>
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version=”1.0″ encoding=”utf-8″?>
<xml>
<status>Success</status>
</xml>