Delete My Recording by CDR Leg ID
Logically deletes a recording of the current user by CDR leg ID.
Request URL
DELETE {base_url}/uc-creport/api/v1/my-recordings/by-leg/{cdrLegId}
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 cdrLegId Yes String The CDR leg ID. You can obtain the ID using the Search My Recordings 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 requestId String The tracking ID of the request.
Example
Request example
DELETE /uc-creport/api/v1/my-recordings/by-leg/347642293061275650 HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MjA4OTA1OCwiaWF0IjoxNzkyMDY3NDU4LCJqdGkiOiI5ZTk0ZDY1NC05ZjYyLTRiMTEtOGE0ZC0zNWMwZDRhOGNmYjkiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6ImI2MzY1MTZjLWNhZDMtNDA2NC1hOWIxLTAyODlmNDMzMTliNSIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.XNteKz4oHlwuwxnA5z2ZVgHnNPGRno8TPDExnG1JSFDA_QwpQMoE1alc10n9fdTtGEkiPuN2Y2_WLdzIggDciyjozZO-998knHqY_UyG16cFrPrDTmmY79LCiYlGkjK-wSrw2se3n4_r5DAUwcT5UZbhq6KcfIuIwE_eu4PwF3Lwr205AKs1Bo2z4-ZUS9ZqkYSPcU9O9ublyuDrgsL9SCs7dQ7_migFByUDVTdUs2SQTv-R9jAr53hRT6vcoSkdKsd45OEXxH_zFdv0sEKovt1bZLVw2g05EUggO4R2if0ajYPirST6yB9U8Kzr0jsnxNGCSebE1xR8z0st7mivfA
x-tenant-code: colortest2
Content-Type: application/json
Response example
HTTP/1.1 404 Not Found { "requestId": "1b9376a740e2bb4ed9d3aad63672cc5b", "code": "1551404001", "message": "COMMCTL_REPORT_RECORDING_NOT_FOUND", "detailMessage": "recording not found", "result": null }
Note:
The recording exists in the tenant but is not visible to the tested user, so the API returned 404 COMMCTL_REPORT_RECORDING_NOT_FOUND. A request for a recording visible to the current user will return 2xx.