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

# Update blocking rule

`PUT /callBlockingRules/{id}`

Update the call blocking rule by the specified ID.

## Path parameters

- `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.

---

[API](https://skmtc.net/sinch/apis/elastic-sip-trunk-api.md) · [All operations](https://skmtc.net/sinch/apis/elastic-sip-trunk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinch/elastic-sip-trunk-api/revisions/c04c2c708bf9/schema)
