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

# Update a monitor

> Pause or resume a monitor.



## OpenAPI

````yaml PATCH /v1/api/monitors/{id}
openapi: 3.1.0
info:
  title: PagePith API
  version: 0.1.0
  description: >-
    Turn any web page into clean, structured content. The API handles
    JavaScript-rendered sites, PDFs, and most bot-protected pages, returning
    readable markdown. Authenticate with your API key as a Bearer token. Usage
    is billed per successful scrape.
servers:
  - url: https://api.pagepith.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Scrape
    description: Fetch and convert web pages
  - name: Video
    description: Transcribe public YouTube, Instagram, and TikTok videos
  - name: Monitoring
    description: Watch public pages for content changes
  - name: Blog
    description: Read published PagePith engineering articles
paths:
  /v1/api/monitors/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Monitoring
      summary: Pause or resume a monitor
      operationId: updateMonitor
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              properties:
                status:
                  type: string
                  enum:
                    - active
                    - paused
      responses:
        '200':
          description: Updated monitor.
          content:
            application/json:
              schema:
                type: object
                required:
                  - monitor
                properties:
                  monitor:
                    $ref: '#/components/schemas/Monitor'
        '404':
          description: Monitor not found.
components:
  schemas:
    Monitor:
      type: object
      required:
        - id
        - url
        - status
        - lastCheckedAt
        - lastChangedAt
        - consecutiveFailures
        - createdAt
        - updatedAt
        - channels
      properties:
        id:
          type: string
          format: uuid
        url:
          type: string
          format: uri
        status:
          type: string
          enum:
            - active
            - paused
        lastCheckedAt:
          type:
            - string
            - 'null'
          format: date-time
        lastChangedAt:
          type:
            - string
            - 'null'
          format: date-time
        consecutiveFailures:
          type: integer
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        channels:
          type: array
          items:
            type: object
            required:
              - id
              - type
              - destination
              - enabled
            properties:
              id:
                type: string
                format: uuid
              type:
                type: string
                enum:
                  - email
                  - webhook
              destination:
                type: string
              enabled:
                type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key as a Bearer token: `Authorization: Bearer <api-key>`.'

````