Skip to content

Click2CallUpdateDialRule

PUT click2call/dialRule

Updates a dial rule. Only the fields present in the request are changed.

Disabling a rule hides it from the manager picker; calls already placed with it are not affected.

Access Control

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

Request

PUT https://{broker_domain}/click2call/dialRule
{
  "id": 7,
  "dialPrefix": "99"
}
{
  "command": "Click2CallUpdateDialRule",
  "extID": "1",
  "data": {
    "id": 7,
    "dialPrefix": "99"
  }
}
const res = await platform.Click2CallUpdateDialRule({
  id: 7,
  dialPrefix: "99"
});

Request Data

Field Type Required Description
id int Yes Rule id
profileId int No Provider profile
countryCode string No Destination dial code
countryName string No Country label
name string No Rule name
description string No Free-form note
status enum No ENABLED or DISABLED
dialPrefix string No Digits prepended to the number
dialPostfix string No Digits appended to the number

Response Data

{
  "id": 7,
  "profileId": 3,
  "countryCode": "380",
  "name": "UA outside line",
  "dialPrefix": "99",
  "dialPostfix": null,
  "status": "ENABLED",
  "updatedAt": "2026-08-24 14:31:07"
}

Errors

Code Error Description
400 VALIDATION_ERROR Prefix or postfix contains something other than digits and *
404 NOT_FOUND Rule or profile not found in the brand