Skip to content

Click2CallUpdateProfile

PUT click2call/providerProfile

Updates a provider profile. Only the fields present in the request are changed, so rotating credentials does not require resending the destination lists.

Disabling a profile removes it from routing immediately; calls already in flight keep running and keep reporting their statuses.

Access Control

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

Request

PUT https://{broker_domain}/click2call/providerProfile
{
  "id": 3,
  "credentials": {
    "accountSid": "AC...",
    "authToken": "new-token",
    "fromNumber": "+15550001111"
  }
}
{
  "command": "Click2CallUpdateProfile",
  "extID": "1",
  "data": {
    "id": 3,
    "credentials": {
      "accountSid": "AC...",
      "authToken": "new-token",
      "fromNumber": "+15550001111"
    }
  }
}
const res = await platform.Click2CallUpdateProfile({
  id: 3,
  credentials: {
    accountSid: "AC...",
    authToken: "new-token",
    fromNumber: "+15550001111"
  }
});

Request Data

Field Type Required Description
id int Yes Profile id
name string No Profile name shown to managers
description string No Free-form note
providerId int No Provider from the catalogue
mode enum No COMMON — one line for everyone; INDIVIDUAL — the line comes from the manager link
status enum No ENABLED or DISABLED
credentials object No Provider credentials; fields are described by the adapter, see Click2CallGetProviderAdapters
callsUpdateBy enum No NONE, REQUEST (module polls the provider), or WEBHOOK (provider calls the module)
allowedCountries array No Allowed destinations as ISO codes or dial codes, ["UA","380"]. Empty means every destination
blockedCountries array No Blocked destinations, ["US","CA"]. Checked before allowedCountries
routingPriority int No Lower value is tried first: 100 for the primary profile, 200 for a backup
isDefault bool No Default profile of the brand; setting it clears the flag on the others

Response Data

{
  "id": 3,
  "name": "Twilio main",
  "status": "ENABLED",
  "callsUpdateBy": "REQUEST",
  "routingPriority": 100,
  "updatedAt": "2026-08-24 14:02:55"
}

Errors

Code Error Description
400 UPDATE_MODE_NOT_SUPPORTED Provider or adapter cannot deliver statuses this way
404 NOT_FOUND Profile or provider not found in the brand