Skip to main content

Patch a channel zone

PATCH 
/channel_zones/:channel_zone_id

Change the amount of reserved channels at a given channel zone

Request

Path Parameters

    channel_zone_id stringrequired

    Channel zone identifier

Body

required

Quantity of reserved channels

    channels int64

Responses

200: Successfuly patched channel zone

default: Unexpected error

Request samples


curl -L -X PATCH 'https://api.telnyx.com/v2/phone_numbers/channel_zones/:channel_zone_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"channels": 0
}'

Response samples


{
"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"
}