{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimemonitoring-com/json-schema/uptimemonitoring-com-announcement-input-schema.json",
  "title": "AnnouncementInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimemonitoring-com-announcements-api-openapi.yml#/components/schemas/AnnouncementInput",
  "type": "object",
  "required": [
    "title",
    "body"
  ],
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Short banner title. Server TrimSpace's leading and\ntrailing whitespace before length-checking.\n"
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Banner body / paragraph. Server TrimSpace's leading\nand trailing whitespace before length-checking.\n"
    },
    "published_at": {
      "type": "string",
      "format": "date-time",
      "description": "RFC 3339 timestamp at which the banner becomes active.\nWhen omitted the server defaults to `now()`.\n"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "RFC 3339 timestamp after which the banner is hidden.\nWhen set, must be strictly greater than the effective\n`published_at`. Omit (or send `null`) for no expiry.\n"
    }
  }
}