{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-create-personal-alert-contact-dto-schema.json",
  "title": "CreatePersonalAlertContactDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimerobot-alert-contacts-api-openapi.yml#/components/schemas/CreatePersonalAlertContactDto",
  "type": "object",
  "properties": {
    "type": {
      "enum": [
        "Email",
        "ProSms",
        "Voice",
        "MobileAppIOS",
        "MobileAppAndroid",
        "MobileAppOld",
        "MobileApp"
      ],
      "type": "string",
      "description": "Personal alert-contact type. Email and mobile push for iOS or Android are creatable here; Pro SMS and voice require phone verification. Use MobileAppIOS or MobileAppAndroid for mobile push. DEPRECATED: MobileAppOld (use MobileAppIOS) and MobileApp (use MobileAppAndroid) are accepted through October 10, 2026 and will be rejected after that date."
    },
    "friendlyName": {
      "type": "string",
      "description": "Display name of the alert contact"
    },
    "enableNotificationsFor": {
      "enum": [
        0,
        1,
        2,
        3
      ],
      "type": "number"
    },
    "value": {
      "type": "string",
      "description": "Email address (required for Email contacts)"
    },
    "deviceName": {
      "type": "string",
      "description": "Device name (push)"
    },
    "oneSignalSubscriptionId": {
      "type": "string",
      "description": "OneSignal subscription ID (push)"
    },
    "oneSignalUserId": {
      "type": "string",
      "description": "OneSignal user ID (push)"
    },
    "deviceFingerprint": {
      "type": "string",
      "description": "Device fingerprint (push)"
    },
    "pushToken": {
      "type": "string",
      "description": "Push notification token (push)"
    },
    "platform": {
      "type": "string",
      "enum": [
        "ios",
        "android"
      ],
      "description": "Device platform (push)"
    },
    "config": {
      "$ref": "#/$defs/AlertContactConfigDto"
    }
  },
  "required": [
    "type"
  ],
  "$defs": {
    "AlertContactConfigDto": {
      "type": "object",
      "properties": {
        "android_push_up_channel": {
          "type": "string"
        },
        "android_push_down_channel": {
          "type": "string"
        }
      }
    }
  }
}