Skip to main content
PATCH
/
managed_accounts
/
{id}
/
update_global_channel_limit
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const response = await client.managedAccounts.updateGlobalChannelLimit('id');

console.log(response.data);
{
  "data": {
    "channel_limit": 30,
    "email": "allocate_demo@customer.com",
    "id": "096abcde-1122-3344-ab77-ff0123456789",
    "manager_account_id": "beeabcde-1122-3344-ab77-ff0123456789",
    "record_type": "managed_account_global_outbound_settings"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Managed Account User ID

Body

application/json

Parameters that define the changes to the global outbounds channels for the managed account

channel_limit
integer

Integer value that indicates the number of allocatable global outbound channels that should be allocated to the managed account. Must be 0 or more. If the value is 0 then the account will have no usable channels and will not be able to perform outbound calling.

Example:

30

Response

Successful response with information about the allocatable global outbound channels for the given account.

data
Global Outbound Channels Details for a Managed Account · object
Example:
{
"channel_limit": 30,
"email": "allocate_demo@customer.com",
"id": "096abcde-1122-3344-ab77-ff0123456789",
"manager_account_id": "beeabcde-1122-3344-ab77-ff0123456789",
"record_type": "managed_account_global_outbound_settings"
}