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

# Update a monitor

> Change a monitor's name, status, search, schedule, extraction rules, output fields, or entity watchlist. Send only the fields you want to change; omitted fields stay unchanged.

Set `status` to `active` to start scheduled runs or `inactive` to pause them. After changing the search, extraction rules, or output fields, run another simulation before activating the monitor.

<Note>
A monitor keeps the intent it was created with. If you want to track a different type of event, create another monitor.
</Note>



## OpenAPI

````yaml /api-rest/openapi/openapi_search_monitoring.json patch /v1/search-monitoring/monitors/{monitor_id}
openapi: 3.1.0
info:
  title: Monitors API
  description: >-
    Coming soon. Run a saved Bigdata Search on a schedule and receive structured
    events from new content. Test a monitor against recent historical data
    before turning it on.
  version: 1.0.0
servers:
  - url: https://api.bigdata.com
    description: Production server
security:
  - API Key Authentication: []
tags:
  - name: Monitors
    description: Coming soon. Create, test, activate, and review monitors.
paths:
  /v1/search-monitoring/monitors/{monitor_id}:
    parameters:
      - $ref: '#/components/parameters/MonitorId'
    patch:
      tags:
        - Monitors
      summary: Update a monitor
      description: >-
        Change a monitor's name, status, search, schedule, extraction rules,
        output fields, or entity watchlist. Send only the fields you want to
        change; omitted fields stay unchanged.


        Set `status` to `active` to start scheduled runs or `inactive` to pause
        them. After changing the search, extraction rules, or output fields, run
        another simulation before activating the monitor.


        <Note>

        A monitor keeps the intent it was created with. If you want to track a
        different type of event, create another monitor.

        </Note>
      operationId: updateMonitor
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorUpdate'
            examples:
              activate:
                summary: Activate after testing
                value:
                  status: active
              refineExecutiveDepartures:
                summary: Improve event extraction
                value:
                  name: Executive Departures
                  extraction_instructions: >-
                    Treat an interim or acting appointment as a departure of the
                    outgoing executive. Exclude rumored departures and routine
                    board rotations.
              pause:
                summary: Pause scheduled runs
                value:
                  status: inactive
              changeSchedule:
                summary: Run every four hours
                value:
                  schedule:
                    frequency: 4h
      responses:
        '200':
          description: Monitor updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  parameters:
    MonitorId:
      name: monitor_id
      in: path
      required: true
      description: Unique identifier for the monitor.
      schema:
        type: string
        format: uuid
      example: 6af74cb7-0a6e-4ea0-8421-acde4c85e56a
  schemas:
    MonitorUpdate:
      type: object
      description: >-
        Monitor settings that can be changed. Omitted fields remain unchanged.
        `intent` is fixed when the monitor is created and cannot be updated.
      properties:
        name:
          type: string
          description: A short, recognizable name for the monitor.
        status:
          $ref: '#/components/schemas/MonitorStatus'
        search_queries:
          $ref: '#/components/schemas/SearchQueries'
          description: A replacement search mode and Search documents query.
        schedule:
          $ref: '#/components/schemas/Schedule'
          description: How often the active monitor should run.
        structured_output:
          $ref: '#/components/schemas/StructuredOutput'
          description: The fields to extract for each event.
        extraction_instructions:
          type: string
          description: Rules explaining which events to include or exclude.
        entity_watchlist:
          type: array
          description: The complete list of entities to track.
          items:
            $ref: '#/components/schemas/EntityWatchlistItem'
      additionalProperties: false
    MonitorResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Monitor'
        metadata:
          $ref: '#/components/schemas/Metadata'
      required:
        - data
        - metadata
    MonitorStatus:
      type: string
      enum:
        - active
        - inactive
      description: >-
        `active` runs on schedule. `inactive` keeps its configuration but does
        not start new scheduled runs.
    SearchQueries:
      type: object
      description: >-
        What to search for during each run. Set the search mode and provide the
        same query object used by [Search
        documents](/api-reference/search/search-documents#body-query).
      properties:
        search_mode:
          type: string
          enum:
            - fast
            - smart
          default: fast
        query:
          type: object
          description: >-
            The [Search documents query
            object](/api-reference/search/search-documents#body-query),
            including its search text, filters, external search, chunk limit,
            and ranking settings.
          additionalProperties: true
      required:
        - search_mode
        - query
      additionalProperties: false
    Schedule:
      type: object
      description: How often an active monitor searches for new content.
      properties:
        frequency:
          type: string
          description: Time between scheduled runs, such as `1h` or `4h`.
          examples:
            - 1h
            - 4h
      required:
        - frequency
    StructuredOutput:
      type: object
      description: >-
        The fields returned with every event. Each property name becomes a field
        in the response.
      additionalProperties:
        $ref: '#/components/schemas/StructuredOutputField'
    EntityWatchlistItem:
      type: object
      description: A company or other Bigdata entity the monitor should track.
      properties:
        name:
          type: string
          description: Canonical entity name.
        rp_entity_id:
          type: string
          description: Bigdata knowledge graph entity ID.
      required:
        - name
        - rp_entity_id
      additionalProperties: true
    Monitor:
      allOf:
        - $ref: '#/components/schemas/MonitorCreate'
        - type: object
          properties:
            id:
              type: string
              format: uuid
            created_at:
              type: string
              format: date-time
          required:
            - id
            - created_at
    Metadata:
      type: object
      properties:
        request_id:
          type: string
        timestamp:
          type: string
          format: date-time
      required:
        - request_id
        - timestamp
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    StructuredOutputField:
      type: object
      description: One field to extract for every event.
      properties:
        description:
          type: string
          description: Instructions explaining what information belongs in this field.
        field_type:
          type: string
          enum:
            - text
            - number
            - enum
            - entity_reference
        values:
          type: array
          description: Allowed values when `field_type` is `enum`.
          items:
            type: string
      required:
        - field_type
    MonitorCreate:
      type: object
      properties:
        name:
          type: string
          description: Short, recognizable monitor name.
        intent:
          type: string
          description: Plain-language description of what should count as an event.
        status:
          $ref: '#/components/schemas/MonitorStatus'
          default: inactive
        search_queries:
          $ref: '#/components/schemas/SearchQueries'
        schedule:
          $ref: '#/components/schemas/Schedule'
        structured_output:
          $ref: '#/components/schemas/StructuredOutput'
        extraction_instructions:
          type: string
          description: >-
            Rules explaining what to include, what to exclude, and how to
            interpret matching content.
        entity_watchlist:
          type: array
          description: Optional set of entities the monitor should track.
          items:
            $ref: '#/components/schemas/EntityWatchlistItem'
      required:
        - intent
        - schedule
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
          additionalProperties: true
      required:
        - loc
        - msg
        - type
  responses:
    ValidationError:
      description: Validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HTTPValidationError'
  securitySchemes:
    API Key Authentication:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key created in the Bigdata Developer Platform.

````