1. Telebroad | Support Center
  2. Solution home
  3. Legacy API Documentation
  4. REST API - DELETE Requests
Open navigation

DELETE/phone/cdrs (Legacy)

  Articles in this support section discuss Telebroad's legacy APIs. To learn about the current version of Telebroad APIs, which offer additional authentication options and support for advanced features, please go to https://developers.telebroad.com/.



The DELETE/phone/cdrs request will delete one or more call details records for a user's given phone line. CDRs are explained here.


Parameters


All parameters go in the header.


Parameter
Type
Operation
phonestring
The  phone line from which the CDRs records are to be deleted.
idstringThe ID for the CDRs to be deleted. Up to ten can be specified, separated by commas.
 
You obtain these IDs using the GET/phone/cdrs method, where it looks like this -

"id":"41171875"

Example


To delete two CDRs items for phone line 1752272 directory for fax mailbox 1113840 use this syntax:


HTTP method: DELETE


webserv.telebroad.com/api/teleconsole/rest/phone/cdrs?phone=1752272&id=47124875,471124298


Response:


A "null" error indicates successful deletion:


{

    "error": null,

    "result": true

}