Menu

Expand
Rate this page:

DialingPermissions BulkCountryUpdate Resource

Updates country dialing permissions in bulk.

DialingPermissions BulkCountryUpdate properties

Resource Properties 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
Parameters 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
Loading Code Sample...
        
        
        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
        Loading Code Sample...
              
              
              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
              Loading Code Sample...
                    
                    
                    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 by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

                    Loading Code Sample...
                          
                          
                          

                          Thank you for your feedback!

                          Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                          Sending your feedback...
                          🎉 Thank you for your feedback!
                          Something went wrong. Please try again.

                          Thanks for your feedback!

                          thanks-feedback-gif