Skip to main content
PUT
Update call policy

Authorizations

Authorization
string
header
required

Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.

Body

application/json
blockedCountryCodes
string[]
required

The complete list, replacing the stored one. At most 300 codes; duplicates are removed. Send an empty list to allow every country.

Value constraints

Maximum array length: 300

Country calling code, or a longer dialing prefix, as 1 to 4 digits without +. For example 44 or 1876.

Pattern: ^[1-9]\d{0,3}$
expectedRevision
integer

Apply the change only if the policy still has this revision. Otherwise it fails with 409 state_conflict.

Value constraints

Required range: x >= 0

Response

The updated call policy.

success
enum<boolean>
required

Whether the request succeeded.

Allowed values

Available options:
true
data
object
required

Structured data carried by this object.