Natzar Partner API Reference - v1.0.0
    Preparing search index...

    Function closeWindow

    • Make the physician unavailable for [start, end) on date — the calendar's "remove this window, this day only" gesture.

      Extra hours inside the window are cut back first; then, if the weekly pattern (or remaining extra hours) still publishes anything in the window, a block exception is added over it. The rules are untouched: removing Tuesday the 14th must never remove every Tuesday.

      Parameters

      • document: ScheduleDocument
      • args: { date: string; start: number; end: number; reason?: string | null }

      Returns ScheduleDocument