Skip to main content

Change the bundle status for a phone number (set to being in a bundle or remove from a bundle)

PATCH 
/phone_numbers/:id/actions/bundle_status_change

Change the bundle status for a phone number (set to being in a bundle or remove from a bundle)

Request

Path Parameters

    id int64required

    Identifies the resource.

Body

required

    bundle_id stringrequired

    The new bundle_id setting for the number. If you are assigning the number to a bundle, this is the unique ID of the bundle you wish to use. If you are removing the number from a bundle, this must be null. You cannot assign a number from one bundle to another directly. You must first remove it from a bundle, and then assign it to a new bundle.

Responses

200: Phone number bundle status change success

default: Unexpected error

Request samples


curl -L -X PATCH 'https://api.telnyx.com/v2/phone_numbers/:id/actions/bundle_status_change' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"bundle_id": "5194d8fc-87e6-4188-baa9-1c434bbe861b"
}'

Response samples


{
"data": {
"id": "1293384261075731499",
"record_type": "voice_settings",
"connection_id": "1d0e6cb8-8668-462e-94c6-49ae0f0ed48b",
"customer_reference": "customer-reference",
"tech_prefix_enabled": false,
"translated_number": "+13035559999",
"call_forwarding": {
"call_forwarding_enabled": true,
"forwards_to": "+13035559123",
"forwarding_type": "always"
},
"cnam_listing": {
"cnam_listing_enabled": true,
"cnam_listing_details": "example"
},
"emergency": {
"emergency_enabled": true,
"emergency_address_id": "1315261609962112019"
},
"usage_payment_method": "pay-per-minute",
"media_features": {
"rtp_auto_adjust_enabled": true,
"accept_any_rtp_packets_enabled": true,
"t38_fax_gateway_enabled": true
},
"call_recording": {
"inbound_call_recording_enabled": true,
"inbound_call_recording_format": "wav",
"inbound_call_recording_channels": "single"
},
"inbound_call_screening": "disabled"
}
}