Delete an Extension
Endpoint
POST /api/v0.0.1/extension/delete?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
number | Required | String | The extension number.
Ranges:
For example: “number”: “2002,1001” |
Response Parameters
Name | Type | Description |
status | String | Current status of the extension.
|
Examples
Request Example
Delete the extension 2002.
POST /api/v0.0.1/extension/delete?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“number”: “2002”
}
Response Example
HTTP/1.1 200 OK
Accept-Ranges: bytes
Connection: close
Content-Type: application/json
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>