Delete CDR Recordings

Deletes all recordings associated with a CDR.

Request URL

DELETE {base_url}/uc-creport/api/v1/cdr/{cdrMainId}/recordings

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
cdrMainId Yes String The ID of the CDR main record. You can obtain the ID using the Search 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.
  • 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
successCount Integer The number of recordings processed successfully.
failedCount Integer The number of recordings that fail to be processed.
failures Array<Failure_Item> The list of recordings that fail to be processed, with failure reasons.
Failure_Item
Parameter Type Description
id String The ID of the recording that fails to be processed.
errorCode String The error code of the failure.
errorMessage String The description of the failure reason.

Example

Request example

DELETE /uc-creport/api/v1/cdr/347642293061275648/recordings HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJhcHBfa2V5Ijoic2xOdnQzaHc1NXB2Vm5HRlNhR2ZOVTNmMWxYQ3lpa08iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MjA4OTA1OCwiaWF0IjoxNzkyMDY3NDU4LCJqdGkiOiJiZWQyN2VjZS00MmRkLTQyYmMtYjQ3YS1iODczYjQxNDRmODEiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.JRcc5Fu-yLVSFILPrWDgouQWFV5U1Gi6K_dOwWH6xciNDYiq6m5PpjVJBtujrBm2cFJqBZIG08N5a33Z8f4bqvPu-IUG4sR4aXiq06Kl2PZ-qsslj9OgjlOHv7TZiCJSM3rD02bhCfFrflxDqQYAM13ZyWO98XOBcpaURed7s1Slv5nvTN6q8nlAut_kJaAS8_TwgGT_RoJV1nwwuO1j3WnOdncAaTte4X8drnDlFKN5ierIMBO7uLaQxsK-NWg3tVWMeggst3hcgKxXQTHiTDpTs0J5JyuICB67w59ADTX3A6KC3K7BJ1T0LkIVCArTfhSUMedf6Wudnd4spFRjgg
x-tenant-code: colortest2
Content-Type: application/json

Response example

HTTP/1.1 200 OK
{
  "requestId": "5cb4d630d6ae4a5ae8ff024128d9bb79",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "successCount": 0,
    "failedCount": 0,
    "failures": []
  }
}
Note:

The recordings of the tested CDR have been deleted by the bulk deletion test, so the deletion count is 0. The API is idempotent and returns 2xx with the actual number of deleted recordings.