NAME
Twilio::Rest::Voice::V1::DialingPermissions::BulkCountryUpdate - The BulkCountryUpdate resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $bulk_country_update = $client->voice->v1->dialing_permissions->bulk_country_updates->create($update_request);
DESCRIPTION
This file holds BulkCountryUpdateList and BulkCountryUpdateInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
BulkCountryUpdateList
Returned by $client->voice->v1->dialing_permissions->bulk_country_updates. See also Twilio::ListResource.
create
my $bulk_country_update = $client->voice->v1->dialing_permissions->bulk_country_updates->create($update_request);
Create a bulk update request to change voice dialing country permissions of one or more countries identified by the corresponding ISO country code. Returns a BulkCountryUpdateInstance.
The required values are:
$update_request-
URL encoded JSON array of update objects. example :
[ { "iso_code": "GB", "low_risk_numbers_enabled": "true", "high_risk_special_numbers_enabled":"true", "high_risk_tollfraud_numbers_enabled": "false" } ]
BulkCountryUpdateInstance
See also Twilio::InstanceResource.
Its fields are:
- update_count
-
The number of countries updated
- update_request
-
A bulk update request to change voice dialing country permissions stored as a URL-encoded, JSON array of update objects. For example :
[ { "iso_code": "GB", "low_risk_numbers_enabled": "true", "high_risk_special_numbers_enabled":"true", "high_risk_tollfraud_numbers_enabled": "false" } ]
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.