{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ragfeed-de/json-schema/ragfeed-de-monitor-update-request-schema.json",
  "title": "MonitorUpdateRequest",
  "description": "Every field optional; a field sent as null clears it (webhook, notification, goal, judgeEnabled).",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ragfeed-de-openapi.json#/components/schemas/MonitorUpdateRequest",
  "properties": {
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "status": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "active",
            "paused"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    },
    "schedule": {
      "anyOf": [
        {
          "$ref": "#/$defs/MonitorSchedule"
        },
        {
          "type": "null"
        }
      ]
    },
    "targets": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MonitorTarget"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Targets"
    },
    "webhook": {
      "anyOf": [
        {
          "$ref": "#/$defs/MonitorWebhook"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook"
    },
    "notification": {
      "anyOf": [
        {
          "$ref": "#/$defs/MonitorNotification"
        },
        {
          "type": "null"
        }
      ]
    },
    "retentionDays": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retentiondays"
    },
    "goal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Goal"
    },
    "judgeEnabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Judgeenabled"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "$defs": {
    "Location": {
      "properties": {
        "country": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Country",
          "default": "US"
        },
        "languages": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Languages"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "Location"
    },
    "MonitorEmail": {
      "properties": {
        "enabled": {
          "type": "boolean",
          "title": "Enabled",
          "default": false
        },
        "recipients": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Recipients"
        },
        "includeDiffs": {
          "type": "boolean",
          "title": "Includediffs",
          "default": false
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "MonitorEmail"
    },
    "MonitorNotification": {
      "properties": {
        "email": {
          "anyOf": [
            {
              "$ref": "#/$defs/MonitorEmail"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "MonitorNotification"
    },
    "MonitorSchedule": {
      "properties": {
        "cron": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cron"
        },
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "timezone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timezone"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "MonitorSchedule"
    },
    "MonitorTarget": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "type": {
          "type": "string",
          "enum": [
            "scrape",
            "crawl",
            "search"
          ],
          "title": "Type"
        },
        "urls": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Urls"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "crawlOptions": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Crawloptions"
        },
        "scrapeOptions": {
          "anyOf": [
            {
              "$ref": "#/$defs/ScrapeOptions"
            },
            {
              "type": "null"
            }
          ]
        },
        "queries": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Queries"
        },
        "searchWindow": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Searchwindow"
        },
        "maxResults": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxresults"
        },
        "includeDomains": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Includedomains"
        },
        "excludeDomains": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Excludedomains"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "type"
      ],
      "title": "MonitorTarget"
    },
    "MonitorWebhook": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metadata"
        },
        "events": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Events"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "url"
      ],
      "title": "MonitorWebhook"
    },
    "ScrapeOptions": {
      "properties": {
        "formats": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ]
          },
          "type": "array",
          "title": "Formats"
        },
        "onlyMainContent": {
          "type": "boolean",
          "title": "Onlymaincontent",
          "default": true
        },
        "onlyCleanContent": {
          "type": "boolean",
          "title": "Onlycleancontent",
          "default": false
        },
        "includeTags": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Includetags"
        },
        "excludeTags": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Excludetags"
        },
        "maxAge": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxage"
        },
        "minAge": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Minage"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "waitFor": {
          "type": "integer",
          "title": "Waitfor",
          "default": 0
        },
        "mobile": {
          "type": "boolean",
          "title": "Mobile",
          "default": false
        },
        "skipTlsVerification": {
          "type": "boolean",
          "title": "Skiptlsverification",
          "default": true
        },
        "timeout": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timeout"
        },
        "parsers": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "additionalProperties": true,
                    "type": "object"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Parsers"
        },
        "actions": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actions"
        },
        "location": {
          "anyOf": [
            {
              "$ref": "#/$defs/Location"
            },
            {
              "type": "null"
            }
          ]
        },
        "removeBase64Images": {
          "type": "boolean",
          "title": "Removebase64Images",
          "default": true
        },
        "blockAds": {
          "type": "boolean",
          "title": "Blockads",
          "default": true
        },
        "proxy": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "basic",
                "enhanced",
                "auto",
                "stealth"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Proxy",
          "default": "auto"
        },
        "storeInCache": {
          "type": "boolean",
          "title": "Storeincache",
          "default": true
        },
        "lockdown": {
          "type": "boolean",
          "title": "Lockdown",
          "default": false
        },
        "redactPII": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "additionalProperties": true,
              "type": "object"
            }
          ],
          "title": "Redactpii",
          "default": false
        },
        "zeroDataRetention": {
          "type": "boolean",
          "title": "Zerodataretention",
          "default": false
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "ScrapeOptions"
    }
  }
}