/v1/accounts/{accountId}/blackListsDeletes one or more black lists, with all their numbers. Black lists used by Active or Paused campaigns can't be deleted: if any of them is in use, the request fails with 409 Conflict, and no black list is deleted.
ID of your SIP Caller account. See Account ID.
A JSON array with the IDs of the black lists to delete. The IDs can't be repeated.
Returns an array with the IDs of the deleted black lists. If none of the black lists exist, returns 404 Not Found.
/v1/accounts/ACCOUNT_ID/blackLists
curl -X DELETE 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/blackLists' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
"BLACK_LIST_ID_1",
"BLACK_LIST_ID_2"
]'Response
200 OK
[
"BLACK_LIST_ID_1",
"BLACK_LIST_ID_2"
]