# Dialing Permissions - BulkCountryUpdates resource

Updates country dialing permissions in bulk.

## BulkCountryUpdates properties

```json
{"type":"object","refName":"voice.v1.dialing_permissions.dialing_permissions_country_bulk_update","modelName":"voice_v1_dialing_permissions_dialing_permissions_country_bulk_update","properties":{"update_count":{"type":"integer","default":0,"description":"The number of countries updated"},"update_request":{"type":"string","nullable":true,"description":"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](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
* `low_risk_numbers_enabled` ‐ (**Boolean**) Whether low risk numbers are enabled

## Create a BulkCountryUpdate

`POST https://voice.twilio.com/v1/DialingPermissions/BulkCountryUpdates`

### Request body parameters

```json
{"schema":{"type":"object","title":"CreateDialingPermissionsCountryBulkUpdateRequest","required":["UpdateRequest"],"properties":{"UpdateRequest":{"type":"string","description":"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\" } ]`"}}},"examples":{"create":{"value":{"lang":"json","value":"{\n  \"UpdateRequest\": \"[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers\\\": \\\"Enabled\\\", \\\"high_risk_special_numbers\\\":\\\"Enabled\\\", \\\"high_risk_irsf_numbers\\\": \\\"Enabled\\\" } ]\"\n}","meta":"","code":"{\n  \"UpdateRequest\": \"[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers\\\": \\\"Enabled\\\", \\\"high_risk_special_numbers\\\":\\\"Enabled\\\", \\\"high_risk_irsf_numbers\\\": \\\"Enabled\\\" } ]\"\n}","tokens":[["{","#C9D1D9"],"\n  ",["\"UpdateRequest\"","#7EE787"],[":","#C9D1D9"]," ",["\"[ {","#A5D6FF"]," ",["\\\"","#79C0FF"],["iso_code","#A5D6FF"],["\\\"","#79C0FF"],[":","#A5D6FF"]," ",["\\\"","#79C0FF"],["GB","#A5D6FF"],["\\\"","#79C0FF"],[",","#A5D6FF"]," ",["\\\"","#79C0FF"],["low_risk_numbers","#A5D6FF"],["\\\"","#79C0FF"],[":","#A5D6FF"]," ",["\\\"","#79C0FF"],["Enabled","#A5D6FF"],["\\\"","#79C0FF"],[",","#A5D6FF"]," ",["\\\"","#79C0FF"],["high_risk_special_numbers","#A5D6FF"],["\\\"","#79C0FF"],[":","#A5D6FF"],["\\\"","#79C0FF"],["Enabled","#A5D6FF"],["\\\"","#79C0FF"],[",","#A5D6FF"]," ",["\\\"","#79C0FF"],["high_risk_irsf_numbers","#A5D6FF"],["\\\"","#79C0FF"],[":","#A5D6FF"]," ",["\\\"","#79C0FF"],["Enabled","#A5D6FF"],["\\\"","#79C0FF"]," ",["} ]\"","#A5D6FF"],"\n",["}","#C9D1D9"]],"annotations":[],"themeName":"github-dark","style":{"color":"#c9d1d9","background":"#0d1117"}}}},"encodingType":"application/x-www-form-urlencoded","conditionalParameterMap":{}}
```

Create a BulkCountryUpdate to update a single country

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function createDialingPermissionsCountryBulkUpdate() {
  const bulkCountryUpdate =
    await client.voice.v1.dialingPermissions.bulkCountryUpdates.create({
      updateRequest: JSON.stringify([
        {
          iso_code: "GB",
          low_risk_numbers_enabled: true,
          high_risk_special_numbers_enabled: true,
          high_risk_tollfraud_numbers_enabled: false,
        },
      ]),
    });

  console.log(bulkCountryUpdate.updateCount);
}

createDialingPermissionsCountryBulkUpdate();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client
import json

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

bulk_country_update = (
    client.voice.v1.dialing_permissions.bulk_country_updates.create(
        update_request=json.dumps(
            [
                {
                    "iso_code": "GB",
                    "low_risk_numbers_enabled": True,
                    "high_risk_special_numbers_enabled": True,
                    "high_risk_tollfraud_numbers_enabled": False,
                }
            ]
        )
    )
)

print(bulk_country_update.update_count)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Voice.V1.DialingPermissions;
using System.Threading.Tasks;
using System.Collections.Generic;
using Newtonsoft.Json;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var bulkCountryUpdate = await BulkCountryUpdateResource.CreateAsync(
            updateRequest: JsonConvert.SerializeObject(
                new List<Object> { new Dictionary<string, Object>() {
                    { "iso_code", "GB" },
                    { "low_risk_numbers_enabled", true },
                    { "high_risk_special_numbers_enabled", true },
                    { "high_risk_tollfraud_numbers_enabled", false }
                } },
                Formatting.Indented));

        Console.WriteLine(bulkCountryUpdate.UpdateCount);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import java.util.Arrays;
import java.util.HashMap;
import com.twilio.Twilio;
import com.twilio.rest.voice.v1.dialingpermissions.BulkCountryUpdate;
import org.json.JSONObject;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        BulkCountryUpdate bulkCountryUpdate = BulkCountryUpdate
                                                  .creator(new JSONObject(Arrays.asList(new HashMap<String, Object>() {
                                                      {
                                                          put("iso_code", "GB");
                                                          put("low_risk_numbers_enabled", true);
                                                          put("high_risk_special_numbers_enabled", true);
                                                          put("high_risk_tollfraud_numbers_enabled", false);
                                                      }
                                                  })).toString())
                                                  .create();

        System.out.println(bulkCountryUpdate.getUpdateCount());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"encoding/json"
	"fmt"
	"github.com/twilio/twilio-go"
	voice "github.com/twilio/twilio-go/rest/voice/v1"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	UpdateRequest, UpdateRequestError := json.Marshal([]interface{}{
		map[string]interface{}{
			"iso_code":                            "GB",
			"low_risk_numbers_enabled":            true,
			"high_risk_special_numbers_enabled":   true,
			"high_risk_tollfraud_numbers_enabled": false,
		},
	})

	if UpdateRequestError != nil {
		fmt.Println(UpdateRequestError)
		os.Exit(1)
	}

	params := &voice.CreateDialingPermissionsCountryBulkUpdateParams{}
	params.SetUpdateRequest(string(UpdateRequest))

	resp, err := client.VoiceV1.CreateDialingPermissionsCountryBulkUpdate(params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		fmt.Println(resp.UpdateCount)
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$bulk_country_update = $twilio->voice->v1->dialingPermissions->bulkCountryUpdates->create(
    json_encode([
        [
            "iso_code" => "GB",
            "low_risk_numbers_enabled" => true,
            "high_risk_special_numbers_enabled" => true,
            "high_risk_tollfraud_numbers_enabled" => false,
        ],
    ]) // UpdateRequest
);

print $bulk_country_update->updateCount;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

bulk_country_update = @client
                      .voice
                      .v1
                      .dialing_permissions
                      .bulk_country_updates
                      .create(
                        update_request: [
                            {
                              'iso_code' => 'GB',
                              'low_risk_numbers_enabled' => true,
                              'high_risk_special_numbers_enabled' => true,
                              'high_risk_tollfraud_numbers_enabled' => false
                            }
                          ].to_json
                      )

puts bulk_country_update.update_count
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:voice:v1:dialing-permissions:bulk-country-updates:create \
   --update-request [{\"iso_code\":\"GB\",\"low_risk_numbers_enabled\":true,\"high_risk_special_numbers_enabled\":true,\"high_risk_tollfraud_numbers_enabled\":false}]
```

```bash
UPDATE_REQUEST_OBJ=$(cat << EOF
{
  "0": {"iso_code":"GB","low_risk_numbers_enabled":true,"high_risk_special_numbers_enabled":true,"high_risk_tollfraud_numbers_enabled":false}
}
EOF
)
curl -X POST "https://voice.twilio.com/v1/DialingPermissions/BulkCountryUpdates" \
--data-urlencode "UpdateRequest=$UPDATE_REQUEST_OBJ" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "update_count": 1,
  "update_request": "[{\"iso_code\":\"GB\",\"low_risk_numbers_enabled\":true,\"high_risk_special_numbers_enabled\":true,\"high_risk_tollfraud_numbers_enabled\":false}]"
}
```

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

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function createDialingPermissionsCountryBulkUpdate() {
  const bulkCountryUpdate =
    await client.voice.v1.dialingPermissions.bulkCountryUpdates.create({
      updateRequest: JSON.stringify([
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "US",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "DE",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "FR",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "GB",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "IN",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "IL",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "JP",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "BR",
          low_risk_numbers_enabled: true,
        },
      ]),
    });

  console.log(bulkCountryUpdate.updateCount);
}

createDialingPermissionsCountryBulkUpdate();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client
import json

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

bulk_country_update = (
    client.voice.v1.dialing_permissions.bulk_country_updates.create(
        update_request=json.dumps(
            [
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "US",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "DE",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "FR",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "GB",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "IN",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "IL",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "JP",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "BR",
                    "low_risk_numbers_enabled": True,
                },
            ]
        )
    )
)

print(bulk_country_update.update_count)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Voice.V1.DialingPermissions;
using System.Threading.Tasks;
using System.Collections.Generic;
using Newtonsoft.Json;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var bulkCountryUpdate = await BulkCountryUpdateResource.CreateAsync(
            updateRequest: JsonConvert.SerializeObject(
                new List<Object> {
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "US" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "DE" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "FR" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "GB" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "IN" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "IL" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "JP" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "BR" },
                        { "low_risk_numbers_enabled", true }
                    }
                },
                Formatting.Indented));

        Console.WriteLine(bulkCountryUpdate.UpdateCount);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import java.util.Arrays;
import java.util.HashMap;
import com.twilio.Twilio;
import com.twilio.rest.voice.v1.dialingpermissions.BulkCountryUpdate;
import org.json.JSONObject;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        BulkCountryUpdate bulkCountryUpdate =
            BulkCountryUpdate
                .creator(new JSONObject(Arrays.asList(
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "US");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "DE");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "FR");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "GB");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "IN");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "IL");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "JP");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "BR");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            }))
                        .toString())
                .create();

        System.out.println(bulkCountryUpdate.getUpdateCount());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"encoding/json"
	"fmt"
	"github.com/twilio/twilio-go"
	voice "github.com/twilio/twilio-go/rest/voice/v1"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	UpdateRequest, UpdateRequestError := json.Marshal([]interface{}{
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "US",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "DE",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "FR",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "GB",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "IN",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "IL",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "JP",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "BR",
			"low_risk_numbers_enabled":            true,
		},
	})

	if UpdateRequestError != nil {
		fmt.Println(UpdateRequestError)
		os.Exit(1)
	}

	params := &voice.CreateDialingPermissionsCountryBulkUpdateParams{}
	params.SetUpdateRequest(string(UpdateRequest))

	resp, err := client.VoiceV1.CreateDialingPermissionsCountryBulkUpdate(params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		fmt.Println(resp.UpdateCount)
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$bulk_country_update = $twilio->voice->v1->dialingPermissions->bulkCountryUpdates->create(
    json_encode([
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "US",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "DE",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "FR",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "GB",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "IN",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "IL",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "JP",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "BR",
            "low_risk_numbers_enabled" => true,
        ],
    ]) // UpdateRequest
);

print $bulk_country_update->updateCount;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

bulk_country_update = @client
                      .voice
                      .v1
                      .dialing_permissions
                      .bulk_country_updates
                      .create(
                        update_request: [
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'US',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'DE',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'FR',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'GB',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'IN',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'IL',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'JP',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'BR',
                              'low_risk_numbers_enabled' => true
                            }
                          ].to_json
                      )

puts bulk_country_update.update_count
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:voice:v1:dialing-permissions:bulk-country-updates:create \
   --update-request [{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"US\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"DE\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"FR\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"GB\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"IN\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"IL\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"JP\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"BR\",\"low_risk_numbers_enabled\":true}]
```

```bash
UPDATE_REQUEST_OBJ=$(cat << EOF
{
  "0": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"US","low_risk_numbers_enabled":true},
  "1": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"DE","low_risk_numbers_enabled":true},
  "2": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"FR","low_risk_numbers_enabled":true},
  "3": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"GB","low_risk_numbers_enabled":true},
  "4": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"IN","low_risk_numbers_enabled":true},
  "5": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"IL","low_risk_numbers_enabled":true},
  "6": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"JP","low_risk_numbers_enabled":true},
  "7": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"BR","low_risk_numbers_enabled":true}
}
EOF
)
curl -X POST "https://voice.twilio.com/v1/DialingPermissions/BulkCountryUpdates" \
--data-urlencode "UpdateRequest=$UPDATE_REQUEST_OBJ" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "update_count": 1,
  "update_request": "[{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"US\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"DE\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"FR\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"GB\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"IN\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"IL\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"JP\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"BR\",\"low_risk_numbers_enabled\":true}]"
}
```

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

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function createDialingPermissionsCountryBulkUpdate() {
  const bulkCountryUpdate =
    await client.voice.v1.dialingPermissions.bulkCountryUpdates.create({
      updateRequest: JSON.stringify([
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "CU",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "LV",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "SO",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "LT",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "GN",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "GM",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "MV",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "EE",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "ZW",
          low_risk_numbers_enabled: true,
        },
        {
          high_risk_special_numbers_enabled: false,
          high_risk_tollfraud_numbers_enabled: false,
          iso_code: "TN",
          low_risk_numbers_enabled: true,
        },
      ]),
    });

  console.log(bulkCountryUpdate.updateCount);
}

createDialingPermissionsCountryBulkUpdate();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client
import json

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

bulk_country_update = (
    client.voice.v1.dialing_permissions.bulk_country_updates.create(
        update_request=json.dumps(
            [
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "CU",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "LV",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "SO",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "LT",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "GN",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "GM",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "MV",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "EE",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "ZW",
                    "low_risk_numbers_enabled": True,
                },
                {
                    "high_risk_special_numbers_enabled": False,
                    "high_risk_tollfraud_numbers_enabled": False,
                    "iso_code": "TN",
                    "low_risk_numbers_enabled": True,
                },
            ]
        )
    )
)

print(bulk_country_update.update_count)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Voice.V1.DialingPermissions;
using System.Threading.Tasks;
using System.Collections.Generic;
using Newtonsoft.Json;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var bulkCountryUpdate = await BulkCountryUpdateResource.CreateAsync(
            updateRequest: JsonConvert.SerializeObject(
                new List<Object> {
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "CU" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "LV" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "SO" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "LT" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "GN" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "GM" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "MV" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "EE" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "ZW" },
                        { "low_risk_numbers_enabled", true }
                    },
                    new Dictionary<string, Object>() {
                        { "high_risk_special_numbers_enabled", false },
                        { "high_risk_tollfraud_numbers_enabled", false },
                        { "iso_code", "TN" },
                        { "low_risk_numbers_enabled", true }
                    }
                },
                Formatting.Indented));

        Console.WriteLine(bulkCountryUpdate.UpdateCount);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import java.util.Arrays;
import java.util.HashMap;
import com.twilio.Twilio;
import com.twilio.rest.voice.v1.dialingpermissions.BulkCountryUpdate;
import org.json.JSONObject;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        BulkCountryUpdate bulkCountryUpdate =
            BulkCountryUpdate
                .creator(new JSONObject(Arrays.asList(
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "CU");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "LV");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "SO");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "LT");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "GN");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "GM");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "MV");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "EE");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "ZW");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            },
                                            new HashMap<String, Object>() {
                                                {
                                                    put("high_risk_special_numbers_enabled", false);
                                                    put("high_risk_tollfraud_numbers_enabled", false);
                                                    put("iso_code", "TN");
                                                    put("low_risk_numbers_enabled", true);
                                                }
                                            }))
                        .toString())
                .create();

        System.out.println(bulkCountryUpdate.getUpdateCount());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"encoding/json"
	"fmt"
	"github.com/twilio/twilio-go"
	voice "github.com/twilio/twilio-go/rest/voice/v1"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	UpdateRequest, UpdateRequestError := json.Marshal([]interface{}{
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "CU",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "LV",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "SO",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "LT",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "GN",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "GM",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "MV",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "EE",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "ZW",
			"low_risk_numbers_enabled":            true,
		},
		map[string]interface{}{
			"high_risk_special_numbers_enabled":   false,
			"high_risk_tollfraud_numbers_enabled": false,
			"iso_code":                            "TN",
			"low_risk_numbers_enabled":            true,
		},
	})

	if UpdateRequestError != nil {
		fmt.Println(UpdateRequestError)
		os.Exit(1)
	}

	params := &voice.CreateDialingPermissionsCountryBulkUpdateParams{}
	params.SetUpdateRequest(string(UpdateRequest))

	resp, err := client.VoiceV1.CreateDialingPermissionsCountryBulkUpdate(params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		fmt.Println(resp.UpdateCount)
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$bulk_country_update = $twilio->voice->v1->dialingPermissions->bulkCountryUpdates->create(
    json_encode([
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "CU",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "LV",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "SO",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "LT",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "GN",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "GM",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "MV",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "EE",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "ZW",
            "low_risk_numbers_enabled" => true,
        ],
        [
            "high_risk_special_numbers_enabled" => false,
            "high_risk_tollfraud_numbers_enabled" => false,
            "iso_code" => "TN",
            "low_risk_numbers_enabled" => true,
        ],
    ]) // UpdateRequest
);

print $bulk_country_update->updateCount;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

bulk_country_update = @client
                      .voice
                      .v1
                      .dialing_permissions
                      .bulk_country_updates
                      .create(
                        update_request: [
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'CU',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'LV',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'SO',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'LT',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'GN',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'GM',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'MV',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'EE',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'ZW',
                              'low_risk_numbers_enabled' => true
                            },
                            {
                              'high_risk_special_numbers_enabled' => false,
                              'high_risk_tollfraud_numbers_enabled' => false,
                              'iso_code' => 'TN',
                              'low_risk_numbers_enabled' => true
                            }
                          ].to_json
                      )

puts bulk_country_update.update_count
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:voice:v1:dialing-permissions:bulk-country-updates:create \
   --update-request [{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"CU\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"LV\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"SO\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"LT\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"GN\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"GM\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"MV\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"EE\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"ZW\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"TN\",\"low_risk_numbers_enabled\":true}]
```

```bash
UPDATE_REQUEST_OBJ=$(cat << EOF
{
  "0": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"CU","low_risk_numbers_enabled":true},
  "1": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"LV","low_risk_numbers_enabled":true},
  "2": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"SO","low_risk_numbers_enabled":true},
  "3": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"LT","low_risk_numbers_enabled":true},
  "4": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"GN","low_risk_numbers_enabled":true},
  "5": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"GM","low_risk_numbers_enabled":true},
  "6": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"MV","low_risk_numbers_enabled":true},
  "7": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"EE","low_risk_numbers_enabled":true},
  "8": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"ZW","low_risk_numbers_enabled":true},
  "9": {"high_risk_special_numbers_enabled":false,"high_risk_tollfraud_numbers_enabled":false,"iso_code":"TN","low_risk_numbers_enabled":true}
}
EOF
)
curl -X POST "https://voice.twilio.com/v1/DialingPermissions/BulkCountryUpdates" \
--data-urlencode "UpdateRequest=$UPDATE_REQUEST_OBJ" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "update_count": 1,
  "update_request": "[{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"CU\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"LV\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"SO\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"LT\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"GN\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"GM\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"MV\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"EE\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"ZW\",\"low_risk_numbers_enabled\":true},{\"high_risk_special_numbers_enabled\":false,\"high_risk_tollfraud_numbers_enabled\":false,\"iso_code\":\"TN\",\"low_risk_numbers_enabled\":true}]"
}
```
