Menu

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

DialingPermissions BulkCountryUpdate Resource

Updates country dialing permissions in bulk.

DialingPermissions BulkCountryUpdate properties

Names in REST API format
update_count
integer Not PII

The number of countries updated

update_request
string Not PII

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

The UpdateRequest parameter is a URL-encoded JSON string that describes an array of objects, each object containing these properties.

  • high_risk_special_numbers_enabled ‐ (Boolean) Whether high-risk special numbers are enabled
  • high_risk_tollfraud_numbers_enabled ‐ (Boolean) Whether high-risk toll fraud numbers are enabled
  • iso_code ‐ (string) The ISO country code
  • low_risk_numbers_enabled ‐ (Boolean) Whether low risk numbers are enabled

Create a DialingPermissions BulkCountryUpdate resource

post
https://voice.twilio.com/v1/DialingPermissions/BulkCountryUpdates
Parameters
Names in REST API format
update_request
Required
post string Not PII

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

Example 1
        
        
        
        
        Update the dialing permissions for Great Britain [GB]

        Create a BulkCountryUpdate resource to update a single country

        Update the dialing permissions for Great Britain [GB]
        Example 2
              
              
              
              
              Enable low-risk number groups in the countries with ISO codes [US , DE , FR , GB , IL , IN , JP , AU , BR]

              Create a BulkCountryUpdate resource to enable low-risk numbers in several countries

              Enable low-risk number groups in the countries with ISO codes [US , DE , FR , GB , IL , IN , JP , AU , BR]
              Example 3
                    
                    
                    
                    
                    Disable high-risk number groups in the countries with ISO codes [CU , LV , SO , LT , GN , GM , ZW , MV , TN, EE]

                    Create a BulkCountryUpdate resource to disable high-risk numbers in several countries

                    Disable high-risk number groups in the countries with ISO codes [CU , LV , SO , LT , GN , GM , ZW , MV , TN, EE]
                    Rate this page:

                    Need some help?

                    We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.