This request will delete the specified switch.
| 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. | |
DELETE https://api.telecomx.dk/pbx/switch/alarm DELETE https://api.telecomx.dk/pbx/switch/alarm?customer=12345678901234567890ABCD
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| 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> |