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

# Change monitoring scope



## OpenAPI

````yaml /openapi.json patch /monitoring-config/{id}
openapi: 3.0.4
info:
  title: Simplified Webhooks Backend
  version: '1.0'
  description: >-
    API for Airtable webhooks, usage (record & attachment-storage counting), and
    change-monitoring audit logs.
  contact:
    name: API Support
    url: https://www.simplified-webhooks.com/contact-us
    email: contact@simplified-webhooks.com
servers:
  - url: https://api.simplified-webhooks.com
    description: Main server
security: []
tags:
  - name: Webhooks
    description: Register, update, and delete delivery webhooks for Airtable changes.
  - name: Usage
    description: >-
      Track daily record counts and attachment storage per Airtable base, and
      read the snapshot time-series.
  - name: Audit Log
    description: >-
      Configure change monitoring that logs every record & schema change into a
      Changes table in your own Airtable base.
paths:
  /monitoring-config/{id}:
    patch:
      tags:
        - Audit Log
      summary: Change monitoring scope
      operationId: updateMonitoringConfig
      parameters:
        - $ref: '#/components/parameters/MonitoringConfigId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - scope
              properties:
                scope:
                  $ref: '#/components/schemas/MonitoringScope'
      responses:
        '200':
          description: The updated config.
          content:
            application/json:
              schema:
                type: object
                properties:
                  config:
                    $ref: '#/components/schemas/MonitoringConfig'
        '400':
          description: Bad request due to invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized, authentication token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Monitoring config not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  parameters:
    MonitoringConfigId:
      name: id
      in: path
      required: true
      description: The monitoring config id.
      schema:
        type: string
        format: uuid
        example: 8f1d6b2c-3a4e-4c5d-9e6f-0a1b2c3d4e5f
  schemas:
    MonitoringScope:
      type: string
      enum:
        - all
        - schema_only
        - records_only
      description: >-
        Which changes are logged — all, schema changes only, or record changes
        only.
      example: all
    MonitoringConfig:
      type: object
      title: Monitoring Config
      properties:
        id:
          type: string
          format: uuid
        baseId:
          type: string
          description: The watched (source) Airtable base id.
          example: appkGlXEiufQLn1Qd
        baseName:
          type: string
          example: Sales CRM
        workspaceId:
          type: string
          example: wspXXXXXXXXXXXXXX
        monitoringBaseId:
          type: string
          description: The auto-provisioned Airtable base that holds the Changes table.
        monitoringBaseName:
          type: string
        monitoringTableId:
          type: string
        monitoringTableName:
          type: string
        scope:
          $ref: '#/components/schemas/MonitoringScope'
        timezone:
          type: string
          description: >-
            Timezone for the Changes table's "Occurred At" column ('utc' or an
            IANA id).
          example: utc
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          example: 'Missing required fields: [tableId, event]'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: API key for authentication.

````