Create a bulk update request to change voice dialing country permissions of one or more countries identified by the corresponding [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)

POST /v1/DialingPermissions/BulkCountryUpdates

Create a bulk update request to change voice dialing country permissions of one or more countries identified by the corresponding ISO country code

application/x-www-form-urlencoded

Body

  • UpdateRequest string Required

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

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • update_count integer

      The number of countries updated

      Default value is 0.

    • update_request string | null

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

POST /v1/DialingPermissions/BulkCountryUpdates
curl \
 --request POST 'https://voice.twilio.com/v1/DialingPermissions/BulkCountryUpdates' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'UpdateRequest=%5B+%7B+%22iso_code%22%3A+%22GB%22%2C+%22low_risk_numbers%22%3A+%22Enabled%22%2C+%22high_risk_special_numbers%22%3A%22Enabled%22%2C+%22high_risk_irsf_numbers%22%3A+%22Enabled%22+%7D+%5D'
Request example
{"UpdateRequest"=>"[ { \"iso_code\": \"GB\", \"low_risk_numbers\": \"Enabled\", \"high_risk_special_numbers\":\"Enabled\", \"high_risk_irsf_numbers\": \"Enabled\" } ]"}
Response examples (201)
{
  "update_count": 1,
  "update_request": "accepted"
}