{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-undesirables-com/json-schema/the-undesirables-com-body-subscribe-alert-api-v1-alerts-subscribe-post-schema.json",
  "title": "Body_subscribe_alert_api_v1_alerts_subscribe_post",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-undesirables-com-openapi.json#/components/schemas/Body_subscribe_alert_api_v1_alerts_subscribe_post",
  "properties": {
    "card_name": {
      "type": "string",
      "title": "Card Name",
      "description": "Card name to monitor"
    },
    "threshold_usd": {
      "type": "number",
      "title": "Threshold Usd",
      "description": "Price threshold in USD"
    },
    "webhook_url": {
      "type": "string",
      "title": "Webhook Url",
      "description": "URL to POST when alert triggers"
    },
    "condition": {
      "type": "string",
      "title": "Condition",
      "description": "Trigger when price goes 'above' or 'below' threshold",
      "default": "above"
    },
    "game": {
      "type": "string",
      "title": "Game",
      "description": "TCG game",
      "default": "Pokemon"
    },
    "cooldown_minutes": {
      "type": "integer",
      "title": "Cooldown Minutes",
      "description": "Min minutes between re-triggers (default 60)",
      "default": 60
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note",
      "description": "Optional label for this alert"
    }
  },
  "type": "object",
  "required": [
    "card_name",
    "threshold_usd",
    "webhook_url"
  ]
}