{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-update-psp-dto-schema.json",
  "title": "UpdatePspDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimerobot-public-status-pages-api-openapi.yml#/components/schemas/UpdatePspDto",
  "type": "object",
  "properties": {
    "monitorIds": {
      "description": "List of monitor IDs to be assigned to the PSP. `[0]` on its own is the sentinel for \"every monitor in the account\"; an empty array detaches all of them. In multipart/form-data, repeat the field (`monitorIds=1&monitorIds=2`) or use the bracket suffix (`monitorIds[]=1`); `monitorIds[]=` with no value is the empty array.",
      "type": "array",
      "items": {
        "type": "number",
        "maximum": 2147483647,
        "minimum": 0
      }
    },
    "tagIds": {
      "description": "List of tag IDs to be assigned to the PSP. Uses the same multipart encoding as `monitorIds`.",
      "type": "array",
      "items": {
        "type": "number",
        "maximum": 2147483647,
        "minimum": 1
      }
    },
    "autoAddMonitors": {
      "type": "boolean",
      "description": "If enabled all monitors (old and new) will be added to PSP automatically. An explicit \"monitorIds\" wins over this flag when both are sent — including an empty \"monitorIds\", which detaches every monitor."
    },
    "friendlyName": {
      "type": "string",
      "maxLength": 255,
      "description": "Friendly name of the Public Status Page"
    },
    "logo": {
      "type": "string",
      "format": "binary",
      "description": "Logo image file. Accepted formats: JPG, JPEG, PNG. Max file size: 150 KB. Dimensions: width 20-400px, height 10-200px."
    },
    "icon": {
      "type": "string",
      "format": "binary",
      "description": "Icon image file. Accepted formats: JPG, JPEG, PNG. Max file size: 150 KB. Dimensions: width 20-400px, height 10-200px."
    },
    "password": {
      "type": "string",
      "maxLength": 255,
      "description": "Password protection for the Public Status Page"
    },
    "customDomain": {
      "type": "string",
      "maxLength": 255,
      "description": "Provide when you want to use custom domain for the Public Status Page"
    },
    "hideUrlLinks": {
      "type": "boolean",
      "description": "This will hide \"Powered by UptimeRobot\" link in footer"
    },
    "noIndex": {
      "type": "boolean",
      "description": "Set HTML meta tag to allow or disallow search engines to index your status page"
    },
    "gaCode": {
      "type": "string",
      "pattern": "/G-[A-Z0-9]{10}/",
      "title": "Google Analytics code",
      "description": "Available only for a Custom Domain status page"
    },
    "sort": {
      "type": "string",
      "enum": [
        "FriendlyNameAsc",
        "FriendlyNameDesc",
        "StatusUpDownPaused",
        "StatusDownUpPaused"
      ],
      "description": "Sort monitors by friendly name or their statuses. Manual is read-only — a manual order can only be arranged in the dashboard."
    },
    "status": {
      "enum": [
        "PAUSED",
        "ENABLED"
      ],
      "type": "string",
      "title": "Status of the Public Status Page",
      "description": "Send \"ENABLED\" to publish the status page, \"PAUSED\" to un-publish it"
    },
    "subscription": {
      "type": "boolean",
      "title": "Enable subscribe feature",
      "description": "Subscribers can subscribe to receive announcements via an e-mail."
    },
    "shareAnalyticsConsent": {
      "type": "boolean",
      "default": false,
      "description": "Help us improve the Status Pages by sharing the analytics data with us."
    },
    "homepageLink": {
      "type": "string",
      "maxLength": 255,
      "default": "https://uptimerobot.com",
      "title": "Homepage URL",
      "description": "The link target for the logo (or main title) on status page. Usually leads to your homepage."
    },
    "showCookieBar": {
      "type": "boolean",
      "default": false,
      "title": "Show cookie consent bar on status page",
      "description": "Available only for a Custom domain status page"
    },
    "useSmallCookieConsentModal": {
      "type": "boolean",
      "title": "Smaller version of cookie consent",
      "description": "Allowing visitor to interact with the page - should not be used on public pages"
    },
    "pinnedAnnouncementId": {
      "type": "number"
    },
    "customSettings": {
      "$ref": "#/$defs/CustomSettingsDto"
    }
  },
  "$defs": {
    "ColorsCustomSettingsDto": {
      "type": "object",
      "properties": {
        "main": {
          "type": "string",
          "pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$",
          "description": "The main color of the page in hex format"
        },
        "text": {
          "type": "string",
          "pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$",
          "description": "The text color of the page in hex format"
        },
        "link": {
          "type": "string",
          "pattern": "^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$",
          "description": "The link color of the page in hex format"
        }
      }
    },
    "CustomSettingsDto": {
      "type": "object",
      "properties": {
        "font": {
          "allOf": [
            {
              "$ref": "#/$defs/FontCustomSettingsDto"
            }
          ]
        },
        "page": {
          "allOf": [
            {
              "$ref": "#/$defs/PageCustomSettingsDto"
            }
          ]
        },
        "colors": {
          "description": "The colors of the page",
          "allOf": [
            {
              "$ref": "#/$defs/ColorsCustomSettingsDto"
            }
          ]
        },
        "features": {
          "allOf": [
            {
              "$ref": "#/$defs/FeaturesCustomSettingsDto"
            }
          ]
        }
      }
    },
    "FeaturesCustomSettingsDto": {
      "type": "object",
      "properties": {
        "showBars": {
          "type": "boolean",
          "title": "Show bar charts",
          "description": "Show or hide the bar charts for uptime of a monitor on a status page home screen"
        },
        "showUptimePercentage": {
          "type": "boolean",
          "title": "Show uptime percentage",
          "description": "Show or hide the uptime percentage of a monitor near the monitor name on a status page home screen"
        },
        "enableFloatingStatus": {
          "type": "boolean",
          "title": "Enable floating status bar",
          "description": "Enable or disable the floating bar sticked to the bottom with the overall count of up and down monitors"
        },
        "showOverallUptime": {
          "type": "boolean",
          "title": "Show overall percentage",
          "description": "Show or hide the overall uptime (last 24 h, last 7 and 30 days) section below monitors list on a status page home screen"
        },
        "showOutageUpdates": {
          "type": "boolean",
          "title": "Show outage details",
          "description": "Show outage reason details (like status code) to give more explanation for your status page users"
        },
        "showOutageDetails": {
          "type": "boolean",
          "title": "Show outage updates and the latest downtime",
          "description": "Show or hide downtimes grouped by day for a specific monitor in the Announcement feed. The latest downtime will be visible in header. This won't hide the events on a details page"
        },
        "enableDetailsPage": {
          "type": "boolean",
          "title": "Enable Details Page",
          "description": "Details page contains uptime, response times and up/down event history"
        },
        "showMonitorURL": {
          "type": "boolean",
          "title": "Show the monitor URL",
          "description": "Show monitor URL and type to give your users more details on your Status page"
        },
        "hidePausedMonitors": {
          "type": "boolean",
          "title": "Hide paused monitors",
          "description": "Don't display paused monitors on your Status page"
        }
      }
    },
    "FontCustomSettingsDto": {
      "type": "object",
      "properties": {
        "family": {
          "type": "string",
          "title": "Font family",
          "description": "The font family to use for the PSP. Google fonts are supported."
        }
      }
    },
    "PageCustomSettingsDto": {
      "type": "object",
      "properties": {
        "layout": {
          "enum": [
            "LogoOnLeft",
            "LogoOnCenter"
          ],
          "type": "string",
          "title": "Logo alignment",
          "description": "The alignment of the logo on the page"
        },
        "theme": {
          "enum": [
            "Light",
            "Dark"
          ],
          "type": "string",
          "title": "Theme",
          "description": "The theme of the page"
        },
        "density": {
          "enum": [
            "Normal",
            "Compact"
          ],
          "type": "string",
          "title": "Density",
          "description": "The density of the page"
        }
      }
    }
  }
}