---
title: "Update blocking rule"
method: PUT
path: "/v1/projects/{projectId}/callBlockingRules/{id}"
tags: ["Call Blocking Rules"]
---

# Update blocking rule

`PUT /v1/projects/{projectId}/callBlockingRules/{id}`

## Request

- Base URL: `https://elastic-trunking.api.sinch.com`
- URL: `https://elastic-trunking.api.sinch.com/v1/projects/{projectId}/callBlockingRules/{id}`
- Auth: one of:
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://auth.sinch.com/oauth2/token`

Update the call blocking rule by the specified ID.

## Path parameters

- `projectId` string, required
- `id` string, required

## Request body

- CallBlockingRule
  - `name` string: The name for the call blocking rule.
  - `direction` 'INBOUND' | 'OUTBOUND', required: The direction of the call blocking rule. Can be either INBOUND or OUTBOUND.
  - `callerCountry` string: The country code of the inbound call.
  - `calleeCountry` string: The country code of the outbound call.
  - `callerMatch` string: Use this field to match the prefixes of an inbound call's phone number.
  - `calleeMatch` string: Use this field to match the prefixes of an outbound call's phone number.
  - `id` string: The ID of the call blocking rule.

## Response `200`

OK

- CallBlockingRule
  - `name` string: The name for the call blocking rule.
  - `direction` 'INBOUND' | 'OUTBOUND', required: The direction of the call blocking rule. Can be either INBOUND or OUTBOUND.
  - `callerCountry` string: The country code of the inbound call.
  - `calleeCountry` string: The country code of the outbound call.
  - `callerMatch` string: Use this field to match the prefixes of an inbound call's phone number.
  - `calleeMatch` string: Use this field to match the prefixes of an outbound call's phone number.
  - `id` string: The ID of the call blocking rule.

## Changes

- **2026-10-01** `108d6bcb3948`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api/changes/v1/projects/:projectId/callBlockingRules/:id/put.md)

---

[API](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api.md) - [All operations](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api/revisions/8f15a650c7cd?raw)
