Country Permissions

Update country permission

Changed on

Update the requested country permission.

put/v1/projects/{projectId}/countryPermissions/{isoCode}

Request

  • Base URL
    https://elastic-trunking.api.sinch.com
  • URL
    https://elastic-trunking.api.sinch.com/v1/projects/{projectId}/countryPermissions/{isoCode}
  • Auth
    • HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://auth.sinch.com/oauth2/token

Request body

isoCodestring

The ISO code of the country

namestring

Country name in english

continentstring

Continent of the country

countryDialingCodesstring[]

The country calling codes as an array, most countries have only one but some have multiple like the San Marino, China, and a few others.

enabledboolean required

If the country is enabled or not. When this is enabled regular numbers can be dialed from the account.

Example request

{
  "isoCode": "US",
  "name": "United States/Canada",
  "continent": "North America",
  "countryDialingCodes": [
    "+1"
  ],
  "enabled": true
}

Response

The updated country permission

isoCodestring

The ISO code of the country

namestring

Country name in english

continentstring

Continent of the country

countryDialingCodesstring[]

The country calling codes as an array, most countries have only one but some have multiple like the San Marino, China, and a few others.

enabledboolean required

If the country is enabled or not. When this is enabled regular numbers can be dialed from the account.

Example response

{
  "isoCode": "US",
  "name": "United States/Canada",
  "continent": "North America",
  "countryDialingCodes": [
    "+1"
  ],
  "enabled": true
}

Changes