Click2CallDeleteBlacklistPhone¶
DELETE click2call/blacklist
Removes a number from the do-not-call list. The entry can be addressed either by id or by
the number — an operator holding a phone number should not have to look up an id first.
Unblocking is an administrative action and is journalled: a number that was blocked by a regulator request should not quietly become callable again.
Access Control¶
Allowed role: admin.
Request¶
DELETE request
DELETE https://{broker_domain}/click2call/blacklist?phone=+380950000000
Authorization: <JWT_TOKEN>
{
"command": "Click2CallDeleteBlacklistPhone",
"extID": "1",
"data": {
"phone": "+380950000000"
}
}
const res = await platform.Click2CallDeleteBlacklistPhone({
phone: "+380950000000"
});
Request Data¶
| Field | Type | Required | Description |
|---|---|---|---|
id |
int | No | Blacklist entry id |
phone |
string | No | Number in any format; used when id is not given |
Response Data¶
{
"id": 31,
"phone": "380950000000",
"deleted": true
}
Errors¶
| Code | Error | Description |
|---|---|---|
400 |
VALIDATION_ERROR |
Neither id nor phone was provided |
404 |
NOT_FOUND |
No such entry in the brand |