---
title: "Update a blocked code"
method: POST
path: "/disallowed_codes/{id}"
tags: ["Security"]
---

# Update a blocked code

`POST /disallowed_codes/{id}`

## Request

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

Update a blocked code by it's ID.

## Path parameters

- `id` string, required: The unique ID of the resource.

## Request body

- object
  - `id` string: The unique ID of the resource.
  - `number_prefix` string: The number prefix of blocked code. An alphanumeric sequence beginning with an optional plus sign.
  - `description` string: The description of blocked code.

## 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)
