{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/highlevel/main/json-schema/highlevel-update-calendar-notifications-dto-schema.json",
  "title": "UpdateCalendarNotificationsDTO",
  "x-generated": "2026-09-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/highlevel-calendars-openapi.json#/components/schemas/UpdateCalendarNotificationsDTO",
  "type": "object",
  "properties": {
    "receiverType": {
      "type": "string",
      "description": "Notification recipient type",
      "enum": [
        "contact",
        "guest",
        "assignedUser",
        "emails",
        "phoneNumbers",
        "business"
      ]
    },
    "additionalEmailIds": {
      "description": "Additional email addresses to receive notifications.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "additionalPhoneNumbers": {
      "description": "Additional phone numbers to receive notifications.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "selectedUsers": {
      "description": "Selected users for in-App and business email notifications. Supports user IDs and special keyword \"sub_account_admin\"",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "channel": {
      "type": "string",
      "description": "Notification channel",
      "enum": [
        "email",
        "inApp",
        "sms",
        "whatsapp"
      ]
    },
    "notificationType": {
      "type": "string",
      "description": "Notification type",
      "enum": [
        "booked",
        "confirmation",
        "cancellation",
        "reminder",
        "followup",
        "reschedule"
      ]
    },
    "isActive": {
      "type": "boolean",
      "description": "Is the notification active",
      "default": true
    },
    "deleted": {
      "type": "boolean",
      "description": "Marks the notification as deleted (soft delete)",
      "default": false
    },
    "templateId": {
      "type": "string",
      "description": "Template ID for email notification"
    },
    "body": {
      "type": "string",
      "description": "Body  for email notification. Not necessary for in-App notification"
    },
    "subject": {
      "type": "string",
      "description": "Subject  for email notification. Not necessary for in-App notification"
    },
    "afterTime": {
      "description": "Specifies the time after which the follow-up notification should be sent. This is not required for other notification types.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SchedulesDTO"
      }
    },
    "beforeTime": {
      "description": "Specifies the time before which the reminder notification should be sent. This is not required for other notification types.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SchedulesDTO"
      }
    },
    "fromAddress": {
      "type": "string",
      "description": "From address for email notification"
    },
    "fromNumber": {
      "type": "string",
      "description": "from number for sms notification"
    },
    "fromName": {
      "type": "string",
      "description": "From name for email/sms notification"
    }
  },
  "$defs": {
    "SchedulesDTO": {
      "type": "object",
      "properties": {
        "timeOffset": {
          "type": "number"
        },
        "unit": {
          "type": "string"
        }
      }
    }
  }
}