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

DELETE/phone/cdrs

Function


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


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

}