# Update domain block

Modifies an existing domain block with new settings. Can change the block severity, media/report rejection settings, comments, and obfuscation. Triggers background jobs if the state changes.

RBAC: requires Federation.Manage

Endpoint: PUT /api/v1/admin/domain-block
Version: 1.0
Security: header

## Request fields (application/json):

  - `domain` (string, required)
    Domain to block. Can be subdomain, i.e. example.com will block sub.example.com
    Example: "example.com"

  - `publicComment` (string, required)
    A comment visible to the general public
    Example: "Violence"

  - `state` (string)
    Registration mode:
      * SUSPEND - removes all content, media, and profile data for this domain's accounts from your server.
      * LIMIT - makes posts from accounts at this domain invisible to anyone who isn't following them.
      * NOOP - when you just want to reject media files or reports.
    Enum: "SUSPEND", "LIMIT", "NOOP"

  - `rejectMedia` (boolean)
    Rejects any media coming from the domain and removes already downloaded. Ignored for SUSPEND

  - `rejectReports` (boolean)
    Ignore all reports coming from this domain. Ignored for SUSPEND

  - `privateComment` (string)
    Comment available only for moderators

  - `obfuscate` (boolean)
    Partially obfuscate the domain name in the list

## Response 403 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation

## Response 404 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation

## Response 409 fields (application/json):

  - `errorCode` (string, required)
    Error code

  - `message` (string, required)
    Error message

  - `docUrl` (string)
    Link to documentation


## Response 400 fields
