{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/akeda-ru/json-schema/akeda-ru-calendar-booking-link-patch-schema.json",
  "title": "CalendarBookingLinkPatch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akeda-ru-calendar-api-openapi.yml#/components/schemas/CalendarBookingLinkPatch",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "properties": {
    "availability": {
      "$ref": "#/$defs/UUID"
    },
    "availability_id": {
      "$ref": "#/$defs/UUID",
      "deprecated": true
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "calendar_source": {
      "type": "string",
      "description": "Нормализуется сервером в booking"
    },
    "export_target": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "duration_min": {
      "type": "integer",
      "minimum": 5
    },
    "buffer_min": {
      "type": "integer",
      "minimum": 0
    },
    "min_notice_min": {
      "type": "integer",
      "minimum": 0
    },
    "max_days_ahead": {
      "type": "integer",
      "minimum": 1
    },
    "date_range_start": {
      "type": "string"
    },
    "date_range_end": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "archived"
      ]
    },
    "member_ids": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64",
        "minimum": 1
      }
    },
    "member_user_ids": {
      "type": "array",
      "deprecated": true,
      "items": {
        "type": "integer",
        "format": "int64",
        "minimum": 1
      }
    }
  },
  "$defs": {
    "UUID": {
      "type": "string",
      "format": "uuid"
    }
  }
}