{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/placestack-com/json-schema/placestack-com-monitor-body-schema.json",
  "title": "MonitorBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/placestack-com-monitor-api-openapi.yml#/components/schemas/MonitorBody",
  "properties": {
    "list": {
      "type": "string",
      "pattern": "^lst_[0-7][0-9a-hjkmnp-tv-z]{25}$",
      "title": "List",
      "description": "The id of the list to watch."
    },
    "active": {
      "type": "boolean",
      "title": "Active",
      "description": "Whether the monitor produces events. Defaults to `true`.",
      "default": true
    },
    "event_type": {
      "items": {
        "type": "string",
        "enum": [
          "permit.created",
          "case.created"
        ]
      },
      "type": "array",
      "minItems": 1,
      "title": "Event Type",
      "description": "The event types to report. Defaults to all of them."
    },
    "email_recipient": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Email Recipient",
      "description": "Email addresses of members to send a daily summary to. Defaults to the caller's own address when a person creates the monitor, and to none for an API key."
    }
  },
  "type": "object",
  "required": [
    "list"
  ]
}