---
title: "Update allowed region or country codes."
method: POST
path: "/allowed_country_codes"
tags: ["Security"]
---

# Update allowed region or country codes.

`POST /allowed_country_codes`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/allowed_country_codes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/allowed_country_codes/post.ts> (a function with typed inputs; its response is checked against the schema)

Update allowed region or country codes.

## Request body

- object
  - `items` string[]: A collection of allowed region or country codes.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
