Bulk Delete MOH Playlist Items

Deletes multiple audio items from a music-on-hold playlist in one request.

Request URL

DELETE {base_url}/uc-cconfig/api/v1/sounds/moh-playlists/{id}/items/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.
Path parameters
Parameter Required Type Description
id Yes String The ID of the MOH playlist. You can obtain the ID using the Search MOH Playlists interface.
Body parameters
Parameter Required Type Description
itemIds Yes Array<String> The list of IDs of the audio items to delete. You can obtain the IDs using the Search MOH Playlist Items 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.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
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
deletedItemIds Array<String> The IDs of the audio items that are deleted.

Example

Request example

DELETE /uc-cconfig/api/v1/sounds/moh-playlists/375580938343899136/items/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
{
  "itemIds": [
    "375580940860481536",
    "375580943351898112"
  ]
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "65e2fe2d7a2fcbea681b33c4767fd01a",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "deletedItemIds": [
      "375580940860481536",
      "375580943351898112"
    ]
  }
}