AccountsMessaging Geopermissions
Update Messaging Geopermissions
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Request Body
application/x-www-form-urlencoded
Permissions*array<unknown>
A list of objects where each object represents the Geo Permission to be updated. Each object contains the following fields: country_code, unique code for each country of Geo Permission; type, permission type of the Geo Permission i.e. country; enabled, configure true for enabling the Geo Permission, false for disabling the Geo Permission.
Response Body
application/json
curl -X PATCH "https://example.com/v1/Messaging/GeoPermissions" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'Permissions=%7B%22country_code%22%3A+%22IN%22%2C%22type%22%3A+%22country%22%2C+%22enabled%22%3A+false%7D%2C%7B%22country_code%22%3A+%22PK%22%2C%22type%22%3A+%22country%22%2C+%22enabled%22%3A+true%7D'{ "permissions": [ { "country_code": "IN", "type": "country", "enabled": false, "error_code": 0, "error_messages": [] }, { "country_code": "PK", "type": "country", "enabled": true, "error_code": 30649, "error_messages": [ "High risk country permission cannot be updated" ] } ]}