Skip to content

Click2CallDeleteDialRule

DELETE click2call/dialRule

Deletes a dial rule. Calls placed with it keep the reference, so history still explains why the dialled number differed from the customer number.

Access Control

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

Request

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

Request Data

Field Type Required Description
id int Yes Rule id

Response Data

{
  "id": 7,
  "deleted": true,
  "message": "Dial rule with ID 7 has been deleted"
}

Errors

Code Error Description
404 NOT_FOUND Rule not found in the brand