{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-edit-event-schema.json",
  "title": "EditEvent",
  "description": "EditEvent",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-altru-event-api-openapi.yml#/components/schemas/EditEvent",
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string",
      "description": "The name."
    },
    "description": {
      "maxLength": 255,
      "minLength": 0,
      "type": "string",
      "description": "The description."
    },
    "start_date": {
      "type": "string",
      "description": "The start date. Uses the format YYYY-MM-DDThh:mm:ss. An example date: <i>1955-11-05T22:04:00</i>.",
      "format": "date-time"
    },
    "start_time": {
      "$ref": "#/$defs/HourMinute"
    },
    "end_date": {
      "type": "string",
      "description": "The end date. Uses the format YYYY-MM-DDThh:mm:ss. An example date: <i>1955-11-05T22:04:00</i>.",
      "format": "date-time"
    },
    "end_time": {
      "$ref": "#/$defs/HourMinute"
    },
    "capacity": {
      "type": "integer",
      "description": "The capacity.",
      "format": "int32"
    },
    "main_event_id": {
      "type": "string",
      "description": "The main event."
    },
    "event_location_id": {
      "type": "string",
      "description": "The location."
    },
    "event_location_contact_id": {
      "type": "string",
      "description": "The contact."
    },
    "sites": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EditEventSites"
      },
      "description": "Sites."
    },
    "site_required": {
      "type": "boolean",
      "description": "Indicates whether site required. Read-only in the SOAP API."
    },
    "event_category": {
      "type": "string",
      "description": "The category. This code table can be queried at https://api.sky.blackbaud.com/alt-adnmg/codetables/eventcategorycode/entries"
    },
    "quick_compare_event_id": {
      "type": "string",
      "description": "The quick comparison event."
    },
    "event_location_room": {
      "type": "string",
      "description": "The room/unit. This simple list can be queried at https://api.sky.blackbaud.com/alt-adnmg/simplelists/5f5a58fe-1594-4004-b0fd-7eb92fb7cf52?parameters=event_location_id,{event_location_id}."
    },
    "auction": {
      "type": "boolean",
      "description": "Indicates whether event is an auction. Read-only in the SOAP API."
    },
    "event_auction_has_items": {
      "type": "boolean",
      "description": "Indicates whether event has items associated. Read-only in the SOAP API."
    },
    "designations_on_fees": {
      "type": "boolean",
      "description": "Indicates whether determines whether or not event allows designations on fees.."
    },
    "event_has_registrants": {
      "type": "boolean",
      "description": "Indicates whether event has registrants. Read-only in the SOAP API."
    }
  },
  "additionalProperties": false,
  "x-display-name": "Event Edit Form 3",
  "x-display-id": "Event Edit Form 3",
  "$defs": {
    "EditEventSites": {
      "required": [
        "site_id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        },
        "site_id": {
          "type": "string",
          "description": "site"
        }
      },
      "description": "EditEventSites",
      "x-display-name": "sites",
      "x-display-id": "sites"
    },
    "HourMinute": {
      "type": "object",
      "properties": {
        "hour": {
          "type": "integer",
          "description": "The hour.",
          "format": "int32"
        },
        "minute": {
          "type": "integer",
          "description": "The minute.",
          "format": "int32"
        }
      },
      "description": "HourMinute",
      "x-display-name": "Hour Minute",
      "x-display-id": "Hour Minute"
    }
  }
}