{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-update-event-request-schema.json",
  "title": "UpdateEventRequest",
  "description": "Body of `PATCH /v1/calendar/events/{id}` — three-state semantics.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-calendar-api-openapi.yml#/components/schemas/UpdateEventRequest",
  "type": "object",
  "properties": {
    "all_day": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "New all-day flag."
    },
    "body": {
      "type": [
        "string",
        "null"
      ],
      "description": "New notes; `null` clears."
    },
    "conference_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New video-call link; `null` clears."
    },
    "ends_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "New end, RFC3339."
    },
    "kind": {
      "type": [
        "string",
        "null"
      ],
      "description": "New kind."
    },
    "location": {
      "type": [
        "string",
        "null"
      ],
      "description": "New location; `null` clears."
    },
    "reminder_minutes": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "New reminder lead in minutes (`0..=10080`); `null` removes the reminder."
    },
    "rrule": {
      "type": [
        "string",
        "null"
      ],
      "description": "New RRULE; `null` turns a series into a one-off."
    },
    "send_updates": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Tell the attendees (default `true`)."
    },
    "starts_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "New start, RFC3339."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "`confirmed` or `tentative` (cancel through `DELETE`)."
    },
    "target": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/EventTargetView",
          "description": "New target; `null` detaches."
        }
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "New title."
    },
    "tz": {
      "type": [
        "string",
        "null"
      ],
      "description": "New zone."
    },
    "visibility": {
      "type": [
        "string",
        "null"
      ],
      "description": "New visibility."
    }
  },
  "$defs": {
    "EventTargetView": {
      "type": "object",
      "description": "The object an event is attached to, on the wire.",
      "required": [
        "kind",
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Id of the object in its own schema."
        },
        "kind": {
          "type": "string",
          "description": "`contact`, `deal`, `invoice_document` or `envelope`."
        }
      }
    }
  }
}