{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-public-bulk-update-dto-schema.json",
  "title": "PublicBulkUpdateDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimerobot-monitors-bulk-operations-api-openapi.yml#/components/schemas/PublicBulkUpdateDto",
  "type": "object",
  "properties": {
    "groupId": {
      "type": "number",
      "minimum": 0,
      "description": "ID of the monitor group to filter by (0 = default group / ungrouped monitors). At least one of groupId or tagId must be provided."
    },
    "tagId": {
      "type": "number",
      "minimum": 1,
      "description": "ID of the tag to filter by. At least one of groupId or tagId must be provided. When both groupId and tagId are specified, only monitors matching both filters are affected."
    },
    "interval": {
      "type": "number",
      "minimum": 15,
      "description": "Monitoring interval in seconds"
    },
    "timeout": {
      "type": "number",
      "minimum": 0,
      "maximum": 60,
      "description": "Timeout in seconds"
    },
    "gracePeriod": {
      "type": "number",
      "minimum": 0,
      "maximum": 86400,
      "description": "Grace period in seconds"
    },
    "checkSSLErrors": {
      "type": "boolean",
      "description": "Whether to check for SSL errors"
    },
    "domainExpirationReminder": {
      "type": "boolean",
      "description": "Whether to enable domain expiration reminder"
    },
    "sslExpirationReminder": {
      "type": "boolean",
      "description": "Whether to enable SSL expiration reminder"
    },
    "responseTimeThreshold": {
      "type": "number",
      "minimum": 0,
      "maximum": 60000,
      "description": "Response time threshold in milliseconds"
    },
    "regionalData": {
      "description": "Regional data configuration",
      "allOf": [
        {
          "$ref": "#/$defs/RegionalDataDto"
        }
      ]
    },
    "customFields": {
      "type": "object",
      "description": "Custom key-value metadata to set on all monitors in the group. Max 20 keys. Keys: alphanumeric + underscore + hyphen, max 64 chars. Values: max 255 chars. Paid plans only."
    }
  },
  "$defs": {
    "RegionalDataDto": {
      "type": "object",
      "properties": {
        "REGION": {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "na",
              "eu",
              "as",
              "oc"
            ]
          }
        },
        "MANUAL_SELECTED": {
          "type": "boolean",
          "description": "Whether the customer chose REGION explicitly. On update, false means the region was not customer-chosen, so REGION is ignored and the monitor keeps the region it already runs from. Send true to change the region, or omit this field."
        },
        "THRESHOLD": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "na": {
              "type": "number"
            },
            "eu": {
              "type": "number"
            },
            "as": {
              "type": "number"
            },
            "oc": {
              "type": "number"
            }
          },
          "description": "Regional threshold values in milliseconds mapped by region code"
        }
      },
      "required": [
        "REGION"
      ]
    }
  }
}