{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snoopscan-com/json-schema/snoopscan-com-monitor-request-schema.json",
  "title": "MonitorRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snoopscan-com-monitor-api-openapi.yml#/components/schemas/MonitorRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name",
      "description": "A name for the monitor, up to 120 characters."
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "A page to watch. Give this, `urls`, or both."
    },
    "urls": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Urls",
      "description": "Pages to watch in the one monitor, up to 50."
    },
    "intervalMinutes": {
      "type": "integer",
      "maximum": 10080.0,
      "minimum": 5.0,
      "title": "Intervalminutes",
      "description": "How often to check, in minutes: at least 5, at most a week (10,080).",
      "default": 60
    },
    "goal": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Goal",
      "description": "What you are watching for, in your own words. Stored and returned with the monitor; it does not yet affect which changes are reported."
    },
    "webhook": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook",
      "description": "A URL to POST to when a check finds a page changed, new or failing."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name"
  ]
}