{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xavio-in/json-schema/xavio-in-booking-listing-update-request-schema.json",
  "title": "BookingListingUpdateRequest",
  "description": "PATCH /api/v1/booking-listings/{id} body — any subset of the create fields (no drawer_host_id); only the fields sent change. An empty body answers 400 empty_patch. Changing fee_rupees / collect_payment / deposit_pct re-derives payment_mode the same way the dashboard does.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xavio-in-bookings-api-openapi.yml#/components/schemas/BookingListingUpdateRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120
    },
    "description": {
      "type": "string",
      "minLength": 0,
      "maxLength": 1000
    },
    "duration_min": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "fee_rupees": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000000000
    },
    "currency": {
      "type": "string"
    },
    "hours_from": {
      "type": "string",
      "pattern": "/^([01]\\d|2[0-3]):[0-5]\\d$/"
    },
    "hours_to": {
      "type": "string",
      "pattern": "/^([01]\\d|2[0-3]):[0-5]\\d$/"
    },
    "weekdays": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 6
      }
    },
    "lead_time_hours": {
      "type": "integer",
      "minimum": 0,
      "maximum": 720
    },
    "instant_book": {
      "type": "boolean"
    },
    "collect_payment": {
      "type": "boolean"
    },
    "deposit_pct": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "button_label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 40
    },
    "is_active": {
      "type": "boolean"
    },
    "provider_kind": {
      "type": "string",
      "enum": [
        "generic",
        "doctor",
        "wellness",
        "consultant",
        "coach",
        "tutor",
        "beauty",
        "legal",
        "finance",
        "other"
      ]
    },
    "timezone": {
      "type": "string",
      "minLength": 2,
      "maxLength": 64
    }
  },
  "required": []
}