api:pbx:musiconhold:deletefile
Table of Contents
API : PBX : Music on hold Delete file
Introduction
This request will delete a song from a music on hold playlist.
Request
| URL | https://api.telecomx.dk/pbx/musiconhold/MOH_ID/audio/FILE_ID | ||
|---|---|---|---|
| Method | DELETE | ||
| Access level | MANAGER or OWNER if user belongs to the customer that owns the music on hold class. RESELLER if customer belongs to the reseller. ADMIN. |
||
| Params | MOH_ID | String | Id of the music on hold class to download the file from. |
| FILE_ID | String | Id of the song to download. | |
Request example
http://api.telecomx.dk/pbx/musiconhold/123457890ABCDEF12345678/audio/12345678901234567890ABCD
Response
| JSON object | ||
|---|---|---|
| success | Boolean | True on success. |
Example
{ success: true }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | id | Music on hold not found |
| 404 | file | File not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/pbx/musiconhold/deletefile.txt · Last modified: 2018/06/29 14:06 by Per Møller