Skip to main content
PUT
/
channel_zones
/
{channel_zone_id}
JavaScript
import Telnyx from 'telnyx';

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

const channelZone = await client.channelZones.update('channel_zone_id', { channels: 0 });

console.log(channelZone.id);
{
  "record_type": "channel_zone",
  "countries": [
    "BE",
    "EL",
    "LT",
    "PT",
    "BG",
    "ES",
    "LU",
    "RO",
    "CZ",
    "FR",
    "HU",
    "SI",
    "DK",
    "HR",
    "MT",
    "SK",
    "DE",
    "IT",
    "NL",
    "FI",
    "EE",
    "CY",
    "AT",
    "SE",
    "IE",
    "LV",
    "PL"
  ],
  "id": "1653e6a1-4bfd-4857-97c6-6a51e1c34477",
  "name": "Euro channel zone",
  "channels": 7,
  "created_at": "2019-01-23T18:10:02.574Z",
  "updated_at": "2019-01-23T18:10:02.574Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

channel_zone_id
string
required

Channel zone identifier

Body

application/json

Quantity of reserved channels and organizational update option

channels
integer<int64>
required

The number of reserved channels

Response

Successfuly patched channel zone

record_type
enum<string>
required
Available options:
channel_zone
Example:

"channel_zone"

countries
string[]
required

List of countries (in ISO 3166-2, capitalized) members of the billing channel zone

Example:
[
"BE",
"EL",
"LT",
"PT",
"BG",
"ES",
"LU",
"RO",
"CZ",
"FR",
"HU",
"SI",
"DK",
"HR",
"MT",
"SK",
"DE",
"IT",
"NL",
"FI",
"EE",
"CY",
"AT",
"SE",
"IE",
"LV",
"PL"
]
id
string
required
Example:

"1653e6a1-4bfd-4857-97c6-6a51e1c34477"

name
string
required
Example:

"Euro channel zone"

channels
integer<int64>
required
Example:

7

created_at
string

ISO 8601 formatted date of when the channel zone was created

Example:

"2019-01-23T18:10:02.574Z"

updated_at
string

ISO 8601 formatted date of when the channel zone was updated

Example:

"2019-01-23T18:10:02.574Z"