> ## Documentation Index
> Fetch the complete documentation index at: https://jetemail.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update domain blocklist rule

> Updates an existing domain blocklist rule. Can update name, description, enabled, and/or conditions. When updating conditions, the entire condition type is replaced.



## OpenAPI

````yaml /openapi.json patch /inbound/filters/blocklist/{uuid}
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /inbound/filters/blocklist/{uuid}:
    patch:
      tags:
        - Inbound
      summary: Update domain blocklist rule
      description: >-
        Updates an existing domain blocklist rule. Can update name, description,
        enabled, and/or conditions. When updating conditions, the entire
        condition type is replaced.
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID of the blocklist rule to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 100
                description:
                  type: string
                  maxLength: 500
                  nullable: true
                enabled:
                  type: boolean
                senders:
                  type: array
                  items:
                    type: object
                recipients:
                  type: array
                  items:
                    type: object
                subjects:
                  type: array
                  items:
                    type: object
                body:
                  type: array
                  items:
                    type: object
                headers:
                  type: array
                  items:
                    type: object
                ips:
                  type: array
                  items:
                    type: object
                size:
                  type: object
                  nullable: true
                attachments:
                  type: array
                  items:
                    type: object
      responses:
        '200':
          description: Rule updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: No fields to update
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Forbidden
        '404':
          description: Rule not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Not found
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Failed to update blocklist rule
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````