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

# Update Catalog Event

> Requires `notification-event-catalog:update`. Overrides the event's
`bypass` flags, always with a `change_reason`. The change is merged
over the current override and sets `overridden_at`, so later
catalog migrations keep it. Answers the event detail.
`404 event-not-found` for an unknown event.

The event's activation is not editable: switching an event off by
hand would silently stop a business flow, so a body with
`is_actived` answers `422`. An event stops only when a catalog
migration deprecates it (`is_deprecated`, which also clears
`is_actived`). Channels are still switched on and off one by one
with `PATCH .../channel/{channel}`.




## OpenAPI

````yaml api-reference/notification/platform/openapi.yaml PATCH /notification/catalog/event/{document_id}
openapi: 3.0.1
info:
  title: Notification Platform API (admin)
  description: |
    Admin side of the notification platform
    (notification/notification-platform): the event catalog and its channel
    rules, channel rates, the suppression list, the traceability search of
    occurrences, and the resend and retry of a notification.

    **Lists.** Every list takes `page` (default 1) and `page_size` (at most
    100; the default is given on each list), plus the flat filters
    documented on it. The shared list query of the Enterprise client is also
    accepted: `search` (folded into `q`) and `filters`
    (`field|operator|value`, comma separated), where `eq` and `in` become
    the flat key of the same name and `created_at` with `gte` / `lte`
    becomes `created_from` / `created_to`; other operators are ignored and
    an explicit flat key wins over the same key inside `filters`. A
    malformed `filters` answers `400`. Results come in `data`, with
    `paging`.

    **Reasons.** Every write carries a mandatory reason (`change_reason` or
    `reason`). It lands in the audit log with the actor, so the history of a
    record shows who changed what and why. A body that misses it, or has any
    other invalid or unknown field, answers `422` with one `{ code, field,
    message }` per problem (`change-reason-required` for a missing
    `change_reason`, `invalid-field` otherwise).
  version: '2026-11-03'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Notification Event Catalog
    description: Catalog events, their channels, rules and change history.
  - name: Notification Rate
    description: Append-only price of a send by channel, provider and country.
  - name: Notification Suppression
    description: Addresses that no channel sends to until lifted.
  - name: Notification Occurrence
    description: Traceability of every event occurrence and its decisions.
  - name: Notification
    description: Resend and retry of a notification.
paths:
  /notification/catalog/event/{document_id}:
    patch:
      tags:
        - Notification Event Catalog
      summary: Update a catalog event
      description: |
        Requires `notification-event-catalog:update`. Overrides the event's
        `bypass` flags, always with a `change_reason`. The change is merged
        over the current override and sets `overridden_at`, so later
        catalog migrations keep it. Answers the event detail.
        `404 event-not-found` for an unknown event.

        The event's activation is not editable: switching an event off by
        hand would silently stop a business flow, so a body with
        `is_actived` answers `422`. An event stops only when a catalog
        migration deprecates it (`is_deprecated`, which also clears
        `is_actived`). Channels are still switched on and off one by one
        with `PATCH .../channel/{channel}`.
      operationId: notificationCatalogEventUpdate
      parameters:
        - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - change_reason
                - bypass
              properties:
                change_reason:
                  $ref: '#/components/schemas/ChangeReason'
                bypass:
                  type: object
                  additionalProperties: false
                  description: Eligibility rules the event skips.
                  properties:
                    frequencyCap:
                      type: boolean
                    optOut:
                      type: boolean
                    quietHours:
                      type: boolean
                    suppression:
                      type: boolean
            example:
              bypass:
                quietHours: true
              change_reason: Security code, deliver at any hour
      responses:
        '200':
          description: The updated catalog event
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogEventEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  parameters:
    DocumentId:
      name: document_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    ChangeReason:
      type: string
      minLength: 3
      maxLength: 500
      description: Why the change is made; recorded in the audit log.
    CatalogEventEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/CatalogEventDetail'
        message:
          type: string
        meta:
          $ref: '#/components/schemas/Meta'
    CatalogEventDetail:
      allOf:
        - $ref: '#/components/schemas/CatalogEventBase'
        - type: object
          properties:
            bypass:
              type: object
              description: >-
                Effective bypass flags (category default, declaration, admin
                override).
              properties:
                frequencyCap:
                  type: boolean
                optOut:
                  type: boolean
                quietHours:
                  type: boolean
                suppression:
                  type: boolean
            bypass_override:
              type: object
              nullable: true
              additionalProperties:
                type: boolean
              description: The admin override alone.
            change_reason:
              type: string
              nullable: true
            overridden_at:
              type: string
              format: date-time
              nullable: true
            channels:
              type: array
              description: Every declared channel with its rules and template state.
              items:
                allOf:
                  - $ref: '#/components/schemas/CatalogEventChannel'
                  - type: object
                    properties:
                      template:
                        type: object
                        nullable: true
                        properties:
                          document_id:
                            type: string
                            format: uuid
                          internal:
                            type: string
                          current_version:
                            type: integer
                            nullable: true
                          has_draft:
                            type: boolean
                          languages:
                            type: array
                            items:
                              type: string
                              enum:
                                - es
                                - en
                                - pt
                                - fr
                                - it
                          published_at:
                            type: string
                            format: date-time
                            nullable: true
            gateways:
              type: array
              description: Gateways allowed to trigger the event.
              items:
                type: object
                properties:
                  document_id:
                    type: string
                    format: uuid
                  gateway:
                    type: string
                    format: uuid
                  internal:
                    type: string
                  name:
                    type: string
                  is_actived:
                    type: boolean
            payload_schema:
              type: object
              additionalProperties: true
              description: JSON Schema of the event payload.
            payload_schema_version:
              type: integer
            sensitive_fields:
              type: array
              items:
                type: string
            subject_type:
              type: string
              nullable: true
            ttl:
              type: string
              nullable: true
              example: P1D
            flows:
              type: array
              items: {}
            producers:
              type: array
              items: {}
            usage:
              type: object
              description: Observed usage of the last 30 days.
              properties:
                last_triggered_at:
                  type: string
                  format: date-time
                  nullable: true
                volume_30d:
                  type: integer
                volume_by_day:
                  type: array
                  items:
                    type: object
                    properties:
                      day:
                        type: string
                        format: date
                      count:
                        type: integer
                      total:
                        type: integer
                origins:
                  type: array
                  items:
                    type: object
                    properties:
                      origin:
                        type: string
                      total:
                        type: integer
                gateways:
                  type: array
                  items:
                    type: object
                    properties:
                      gateway:
                        type: string
                        format: uuid
                      name:
                        type: string
                      total:
                        type: integer
                latest_occurrences:
                  type: array
                  description: The ten latest occurrences.
                  items:
                    type: object
                    additionalProperties: true
    Meta:
      type: object
      properties:
        correlation:
          type: string
          description: Request correlation id; quote it when reporting an issue.
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
    CatalogEventBase:
      type: object
      properties:
        document_id:
          type: string
          format: uuid
        key:
          type: string
          description: Same as `internal`.
          example: maihue.onboarding.invited
        internal:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        domain:
          type: string
          example: maihue
        category:
          type: string
          enum:
            - marketing
            - payment
            - security
            - system
            - transactional
        kind:
          type: string
          enum:
            - broadcast
            - flow
        audience:
          type: string
          nullable: true
        brand:
          type: string
          nullable: true
        platforms:
          type: array
          items:
            type: string
        opt_out_able:
          type: boolean
        is_actived:
          type: boolean
        is_deprecated:
          type: boolean
        channels:
          type: array
          items:
            $ref: '#/components/schemas/Channel'
        active_channels:
          type: array
          items:
            $ref: '#/components/schemas/Channel'
    CatalogEventChannel:
      allOf:
        - $ref: '#/components/schemas/CatalogEventChannelSummary'
        - type: object
          properties:
            quiet_hours_enabled:
              type: boolean
            quiet_hours_start:
              type: string
              nullable: true
              example: '22:00'
            quiet_hours_end:
              type: string
              nullable: true
              example: '08:00'
            frequency_cap_count:
              type: integer
              nullable: true
            frequency_cap_scope:
              type: string
              nullable: true
              enum:
                - category
                - event
            frequency_cap_window:
              type: string
              nullable: true
              example: P1D
            delay:
              type: string
              nullable: true
              example: PT15M
            overridden_at:
              type: string
              format: date-time
              nullable: true
              description: >-
                Set by an admin rule edit; catalog migrations keep overridden
                rules.
            change_reason:
              type: string
              nullable: true
            default_frequency_cap:
              type: object
              nullable: true
              description: |
                Cap the engine applies when `frequency_cap_count` is null: the
                registry declaration, else the marketing default (email 2 per
                `PT24H`, push 1 per `PT24H`, SMS 1 per `P7D`, category scope).
                Null when no cap applies to an empty row.
              properties:
                count:
                  type: integer
                  example: 2
                scope:
                  type: string
                  enum:
                    - category
                    - event
                window:
                  type: string
                  example: PT24H
            default_quiet_hours:
              type: object
              description: >-
                Window used while quiet hours are on and `quiet_hours_start` /
                `quiet_hours_end` are null.
              properties:
                start:
                  type: string
                  example: '22:00'
                end:
                  type: string
                  example: '08:00'
            frequency_cap_skip:
              type: string
              nullable: true
              enum:
                - event
              description: >-
                `event` when the event bypasses frequency caps (category default
                or override), so a cap on this channel has no effect.
            quiet_hours_skip:
              type: string
              nullable: true
              enum:
                - category
                - channel
                - event
              description: |
                Why quiet hours never defer this channel: `channel` (email and
                in-app), `category` (a system event off push and SMS) or
                `event` (the event bypasses quiet hours or its declaration
                turns them off). Null when they apply.
    Channel:
      type: string
      enum:
        - email
        - in_app
        - live_activity
        - push
        - sms
        - whatsapp
    CatalogEventChannelSummary:
      type: object
      properties:
        document_id:
          type: string
          format: uuid
        channel:
          $ref: '#/components/schemas/Channel'
        default_active:
          type: boolean
        is_actived:
          type: boolean
        fallback_for:
          $ref: '#/components/schemas/NullableChannel'
    NullableChannel:
      type: string
      nullable: true
      enum:
        - email
        - in_app
        - live_activity
        - push
        - sms
        - whatsapp
      description: Channel this one replaces when that one cannot reach the recipient.
  responses:
    BadRequest:
      description: Malformed path, query, `filters` or JSON body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks the required permission
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnprocessableEntity:
      description: |
        Business-rule or body validation error; `error.errors` lists one
        `{ code, field, message }` per problem
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNPROCESSABLE_ENTITY
              errors:
                - code: change-reason-required
                  field: change_reason
                  message: change_reason is required
              message: Unprocessable Entity
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.