> ## 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 Channel

> Requires `notification-event-catalog:update`. Activation and rule
overrides of one event × channel: quiet hours, frequency cap, delay
and fallback, always with a `change_reason` and at least one other
field. Editing any rule sets `overridden_at`, so later catalog
migrations keep it. The next send and the release of deferred sends
honour the change.

`422` also when the merged rules are inconsistent; each issue
carries a `code` and the `field` it belongs to:
`frequency-cap-incomplete` (a `frequency_cap_count` without
`frequency_cap_window` and `frequency_cap_scope`), `fallback-self`,
`fallback-undeclared`, `fallback-not-primary` (the target is itself
a fallback), `fallback-has-dependents` (other channels fall back to
this one) and `quiet-hours-incomplete` (only one of
`quiet_hours_start` / `quiet_hours_end`). `404
event-not-found` for an unknown event, `404 event-channel-not-found`
when the event does not declare the channel.




## OpenAPI

````yaml api-reference/notification/platform/openapi.yaml PATCH /notification/catalog/event/{document_id}/channel/{channel}
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}/channel/{channel}:
    patch:
      tags:
        - Notification Event Catalog
      summary: Update a channel of a catalog event
      description: |
        Requires `notification-event-catalog:update`. Activation and rule
        overrides of one event × channel: quiet hours, frequency cap, delay
        and fallback, always with a `change_reason` and at least one other
        field. Editing any rule sets `overridden_at`, so later catalog
        migrations keep it. The next send and the release of deferred sends
        honour the change.

        `422` also when the merged rules are inconsistent; each issue
        carries a `code` and the `field` it belongs to:
        `frequency-cap-incomplete` (a `frequency_cap_count` without
        `frequency_cap_window` and `frequency_cap_scope`), `fallback-self`,
        `fallback-undeclared`, `fallback-not-primary` (the target is itself
        a fallback), `fallback-has-dependents` (other channels fall back to
        this one) and `quiet-hours-incomplete` (only one of
        `quiet_hours_start` / `quiet_hours_end`). `404
        event-not-found` for an unknown event, `404 event-channel-not-found`
        when the event does not declare the channel.
      operationId: notificationCatalogEventChannelUpdate
      parameters:
        - $ref: '#/components/parameters/DocumentId'
        - $ref: '#/components/parameters/ChannelPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - change_reason
              properties:
                change_reason:
                  $ref: '#/components/schemas/ChangeReason'
                is_actived:
                  type: boolean
                quiet_hours_enabled:
                  type: boolean
                quiet_hours_start:
                  type: string
                  nullable: true
                  description: '`HH:MM`, 24-hour clock.'
                  example: '22:00'
                quiet_hours_end:
                  type: string
                  nullable: true
                  description: '`HH:MM`, 24-hour clock.'
                  example: '08:00'
                frequency_cap_count:
                  type: integer
                  nullable: true
                  minimum: 1
                  maximum: 1000
                frequency_cap_scope:
                  type: string
                  nullable: true
                  enum:
                    - category
                    - event
                frequency_cap_window:
                  type: string
                  nullable: true
                  description: ISO 8601 duration.
                  example: P1D
                delay:
                  type: string
                  nullable: true
                  description: ISO 8601 duration.
                  example: PT15M
                fallback_for:
                  $ref: '#/components/schemas/NullableChannel'
            example:
              frequency_cap_count: 3
              frequency_cap_scope: event
              frequency_cap_window: P1D
              change_reason: Limit reminders to three a day
      responses:
        '200':
          description: The updated channel
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CatalogEventChannel'
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
        '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
    ChannelPath:
      name: channel
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/Channel'
  schemas:
    ChangeReason:
      type: string
      minLength: 3
      maxLength: 500
      description: Why the change is made; recorded in the audit log.
    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.
    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.
    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
    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'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
  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.