Delete Multiple DNC Lists

Delete multiple call blacklists.

Request URL

POST {base_url}/{api_path}/dnc/batchdelete?access_token={access_token}

Request parameters

Parameter Required Type Description
ids Yes Array<Integer> The unique ID(s) of the call blacklists, up to 100 IDs.
Note:
  • You can query call blacklist's ID using the Query DNC List interface.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
fail_list Array<Dnc_Batch_Delete_Fail_Data> The list of the call blacklists that fail to be deleted, with the failure reasons.
Dnc_Batch_Delete_Fail_Data
Parameter Type Description
id Integer The unique ID of the call blacklist that fails to be deleted.
fail_reason String The reason why the deletion fails.

Example

Request example

POST /openapi/v1.0/dnc/batchdelete?access_token=w3rTvBskMgZ1XpQd7NhLc0eYfA6UoIjK HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "fail_list": null
}