api:pbx:switch:delete
Table of Contents
API : PBX: Switch Delete
Introduction
This request will delete the specified switch.
Request
| URL | https://api.telecomx.dk/pbx/switch/SWITCH_NAME | ||
|---|---|---|---|
| Method | DELETE | ||
| Access level | PERSONAL or VIEWER if name is prefixed with SHARED: or <user-id>: MANAGER, OWNER, RESELLER, ADMIN. |
||
| Param | SWITCH_NAME | Name of the switch | |
| Query | customer | [optional] Customer to delete switch on. Defaults to users own customer. | |
Query example
DELETE https://api.telecomx.dk/pbx/switch/alarm DELETE https://api.telecomx.dk/pbx/switch/alarm?customer=12345678901234567890ABCD
Response
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
Example
{ success: true }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | name | User access level requires name to be prefixed with SHARED: or user-id: |
| 404 | name | Switch not found |
| 404 | customer | Customer not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/pbx/switch/delete.txt · Last modified: 2019/06/26 05:25 by Per Møller