Bulk Delete MOH Playlists
Deletes multiple music-on-hold playlists in one request. The system default playlists are skipped and not deleted.
Request URL
DELETE {base_url}/uc-cconfig/api/v1/sounds/moh-playlists/batch-delete
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code Yes String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
- Body parameters
-
Parameter Required Type Description ids Yes Array<String> The list of IDs of the playlists to delete. You can obtain the IDs using the Search MOH Playlists interface.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Deletion_Result> | The deletion result. |
- Deletion_Result
-
Parameter Type Description deletedIds Array<String> The IDs of the playlists that are deleted. skippedIds Array<String> The IDs of the playlists that are skipped and not deleted, such as the system default playlists.
Example
Request example
DELETE /uc-cconfig/api/v1/sounds/moh-playlists/batch-delete HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MzYzNDI1MSwiaWF0IjoxNzkzNjEyNjUxLCJqdGkiOiI0ZTYzNzlhYS03YmNmLTRkNjYtOTNhZS1kNTg0YzJmMWRjNTYiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6IjFkZTIxYzcwLWU4YWItNDZiMi1iNDI0LTA3ZWE0N2Y3NTMwNiIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.UCrwoSaEQxVWDvvXSP_NTbpzFFYx5XXnXXj0rsrUhY8GTX0_SJ6_VUmSPXWQY48-8pNY3S_rD4_I92K5n1VDJwRowvhieowlE73Y0SeYNNV38UNj6KLrzPF-8_XFV71B5S9Gxjqp5GQGphRteQO6VI7Ihubd1mmWcNuFCxMqI91L637ZAu5mKGoFIdl400aApjzeA67_z97kMO-1BLso8SEkI3RCdGjy5Vzc0yB8EdTbfvuYMW7heNJmcbmHZCYGSxYXkPOw25cepexByTAGfNieU0jFm9RqjFnDvoe448eYoKYX44XjExcrcsEaBoe-sezAHRiKSH-lBvMPvN4iSw
x-tenant-code: jint
Content-Type: application/json
{
"ids": [
"375581005935108096",
"330931373987872768"
]
}
Response example
HTTP/1.1 200 OK { "requestId": "cef71c9ce475dcacf00165a2f992431f", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "deletedIds": [ "375581005935108096" ], "skippedIds": [ "330931373987872768" ] } }
Note:
The request in this example includes the system default playlist 330931373987872768 to show the skip behavior. It is returned in skippedIds and is not deleted.