Create a bulk number update request
POST/origination/bulk_number_update_requests
Update multiple numbers at once with POST/origination/bulk_number_update_requests/
.
Each number's status must be Active (4) or Port Pending (3).
Check the status of your bulk request and the error_messages property with GET/origination/bulk_number_update_requests/{id}
.
Note that only the properties you specified are returned in the GET.
New bulk requests are created in Pending status (1). They move to Complete status (2) after a period of time that varies with the size of the request. If for some reason they can't be processed within 15 minutes then they are moved to Expired status (3).
PLEASE NOTE: Any changes made to a number while a bulk request is pending can and will be overwritten when the bulk request is processed.
Additional note: All parameters are optional except for: ids_or_number_values
. If you want to nullify a property
then you should send an empty value for it. If you want to leave a property unmodified then you should leave its
key out of the request.
Request
- application/json
Body
required
Bulk number update request
Array of number ids and/or number values to update
sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure'
references an Address record
Possible values: [pay-per-minute
, channel
]
Default value: pay-per-minute
setting for whether a number is billed per minute or uses your concurrent channels
Default value: true
When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets.
Enable CNAM listings for this number. Requires cnam_listing_details to also be filled in.
The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set.
When enabled, any inbound call to this number will be recorded.
Possible values: [wav
, mp3
]
Default value: wav
The audio file format for calls being recorded.
Possible values: [single
, dual
]
Default value: single
When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B.
Responses
200: Bulk Number Update Request
- application/json
400: Bad request
401: Unauthorized
422: Unprocessable entity. Can be caused by invalid values. Check message field in response for details.
Request samples
curl -L 'https://api.telnyx.com/origination/bulk_number_update_requests' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"ids_or_number_vals": [
"string"
],
"connection_id": "string",
"forwards_to": "string",
"forwarding_type": "string",
"e911_enabled": true,
"e911_address_id": "string",
"address_id": "string",
"enable_tech_prefix": true,
"translated_number": "string",
"usage_payment_method": "pay-per-minute",
"enable_rtp_auto_adjust": true,
"tag_list": [
"string"
],
"t38_fax_gateway_enabled": false,
"cnam_listing_enabled": false,
"cnam_listing_details": "string",
"accept_any_rtp_packets_enabled": false,
"inbound_call_recording_enabled": false,
"inbound_call_recording_format": "wav",
"inbound_call_recording_channels": "single"
}'
Response samples
{
"id": "string",
"status": 0,
"error_messages": [
"string"
]
}