---
title: "Update Blocked/Allowed Number"
method: PUT
path: "/restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId}"
tags: ["Call Blocking"]
---

# Update Blocked/Allowed Number

`PUT /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId}`

## Request

- Base URL: `https://platform.ringcentral.com`
- URL: `https://platform.ringcentral.com/restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId}`
- Auth: OAuth 2
  - Authorization code: `https://platform.ringcentral.com/restapi/oauth/authorize`
  - Token URL: `https://platform.ringcentral.com/restapi/oauth/token`
- TypeScript: <https://skmtc.dev/ringcentral/apis/ringcentral-api/docs/restapi/v1.0/account/:accountId/extension/:extensionId/caller-blocking/phone-numbers/:blockedNumberId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates blocked or allowed phone number(s) by their ID(s). 
[Batch request syntax](https://developers.ringcentral.com/api-reference/Batch-Requests) is supported.

## Path parameters

- `accountId` string, required
- `extensionId` string, required
- `blockedNumberId` string, required

## Request body

- AddBlockedAllowedPhoneNumber: Updates either blocked or allowed phone number list with a new phone number.
  - `phoneNumber` string: A blocked/allowed phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format
  - `label` string: Custom name of a blocked/allowed phone number
  - `status` 'Blocked' | 'Allowed': Status of a phone number

## Response `200`

OK

- BlockedAllowedPhoneNumberInfo: Information on a blocked/allowed phone number
  - `uri` string, uri: Link to a blocked/allowed phone number
  - `id` string: Internal identifier of a blocked/allowed phone number
  - `phoneNumber` string: A blocked/allowed phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format
  - `label` string: Custom name of a blocked/allowed phone number
  - `status` 'Blocked' | 'Allowed': Status of a phone number

## Other responses

- `400`: General response with **HTTP 400 "Bad request"** status.<br> Reasons: unparsable request, path, query or body parameters are invalid. The error description may contain reference to particular parameter(s) which haven't passed the validation.
- `404`: General response with **HTTP 404 "Not found"** status.<br> Reasons: the entity with given ID (typically specified in a path parameter), is not found or inaccessible
- `500`: General response with **HTTP 500 "Internal Server Error"** status.<br> Reasons: general server-side error.
- `503`: General response with **HTTP 503 "Service not available"** status.<br> Reasons: server cannot process the request because of being overloaded, misconfiguration or other issues.

---

[API](https://skmtc.dev/ringcentral/apis/ringcentral-api.md) - [All operations](https://skmtc.dev/ringcentral/apis/ringcentral-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ringcentral/apis/ringcentral-api/revisions/8d602198ec97?raw)
