---
title: "Update a domain blacklist rule"
method: PUT
path: "/v3/contact-blacklist-rules/domains/{id}"
tags: ["Contact Blacklist Rules"]
---

# Update a domain blacklist rule

`PUT /v3/contact-blacklist-rules/domains/{id}`

<small>_Requires the `contacts:write` scope (or a broader one that includes it)._</small>

Updates an existing domain blacklist rule.

## Path parameters

- `id` integer, required

## Request body

- object — Request body for updating a domain blacklist rule
  - `pattern` string, required — Domain pattern to blacklist. Must be a valid domain format (e.g., `example.com`, `spam-domain.net`)

## Response `200`

Domain blacklist rule updated successfully

- object — A blacklist rule that blocks a domain pattern
  - `id` integer — Unique identifier of the rule
  - `pattern` string — Domain pattern to blacklist
  - `isGlobal` boolean — Whether this is a global (system-wide) rule

## Other responses

- `400` — Route parameter / body validation failure (e.g. pattern is not a valid domain)
- `401` — Unauthorized. The response body is empty; check the `WWW-Authenticate` header for the expected scheme.
- `403` — User lacks required feature scope to manage blacklist rules
- `404` — Domain blacklist rule not found
- `409` — A rule with the given pattern already exists
- `429` — Too Many Requests

---

[API](https://skmtc.net/reply/apis/reply-api.md) · [All operations](https://skmtc.net/reply/apis/reply-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reply/reply-api/versions/1c3d32eaf95e/schema)
