---
title: "Update Monitor"
method: PATCH
path: "/v1/site-monitors/{monitor_id}"
tags: ["SiteMonitors"]
---

# Update Monitor

`PATCH /v1/site-monitors/{monitor_id}`

Update a site monitor. Schedule is updated if cron or config changed.

## Path parameters

- `monitor_id` string, required

## Request body

- SiteMonitorUpdate — Request body for updating a site monitor (partial).
  - `name` string, nullable
  - `webhook_url` string, nullable
  - `cron_expression` string, nullable
  - `extraction_config` SiteMonitorExtractionConfig — Optional extraction config for monitored page (smartscraper-style).
    - `user_prompt` string, nullable — Prompt for extracting structured data from the page
    - `output_schema` object, nullable — JSON schema for extracted fields (enables structured diff)
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- SiteMonitorResponse — Response for a single site monitor.
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `api_key_id` string, uuid, required
  - `name` string, nullable
  - `website_url` string, required
  - `webhook_url` string, required
  - `cron_expression` string, required
  - `extraction_config` object, nullable
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_run_at` string, date-time, nullable
  - `next_run_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/scrapegraphai/apis/fastapi.md) · [All operations](https://skmtc.dev/scrapegraphai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scrapegraphai/fastapi/revisions/7583b63abb6e/schema)
