Skip to content

Click2CallDeleteCallWindow

DELETE click2call/callWindow

Deletes a calling window. Afterwards the destination falls back to the * window, and if there is none, calls to that country are no longer time-restricted.

Deleting the * window removes the restriction for every destination that had no rule of its own — worth checking before doing it on a brand that calls many countries.

Access Control

Allowed role: admin, within the brand of the caller.

Request

DELETE request
DELETE https://{broker_domain}/click2call/callWindow?id=5
Authorization: <JWT_TOKEN>
{
  "command": "Click2CallDeleteCallWindow",
  "extID": "1",
  "data": {
    "id": 5
  }
}
const res = await platform.Click2CallDeleteCallWindow({
  id: 5
});

Request Data

Field Type Required Description
id int Yes Window id

Response Data

{
  "id": 5,
  "deleted": true,
  "message": "Calling window with ID 5 has been deleted"
}

Errors

Code Error Description
404 NOT_FOUND Window not found in the brand