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

    Variable updatePhysicianScheduleSchemaConst

    updatePhysicianScheduleSchema: ZodObject<
        {
            rules: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            weekday: ZodNumber;
                            startMinute: ZodNumber;
                            endMinute: ZodNumber;
                            timezone: ZodOptional<ZodNullable<ZodString>>;
                            effectiveFrom: ZodOptional<ZodNullable<ZodString>>;
                            effectiveUntil: ZodOptional<ZodNullable<ZodString>>;
                            intervalWeeks: ZodOptional<ZodNullable<ZodNumber>>;
                            specialty: ZodOptional<ZodNullable<ZodString>>;
                            active: ZodOptional<ZodNullable<ZodBoolean>>;
                            id: ZodOptional<ZodString>;
                        },
                        $strict,
                    >,
                >,
            >;
            exceptions: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            date: ZodString;
                            endDate: ZodOptional<ZodNullable<ZodString>>;
                            kind: ZodEnum<{ block: "block"; open: "open" }>;
                            startMinute: ZodOptional<ZodNullable<ZodNumber>>;
                            endMinute: ZodOptional<ZodNullable<ZodNumber>>;
                            specialty: ZodOptional<ZodNullable<ZodString>>;
                            reason: ZodOptional<ZodNullable<ZodString>>;
                            id: ZodOptional<ZodString>;
                        },
                        $strict,
                    >,
                >,
            >;
            deletedRuleIds: ZodOptional<ZodArray<ZodString>>;
            deletedExceptionIds: ZodOptional<ZodArray<ZodString>>;
            timezone: ZodOptional<ZodNullable<ZodString>>;
        },
        $strict,
    > = ...

    Body of PATCH /v1/physicians/{id}/schedule — a CHANGE SET, the way a calendar edits: rows with an id (from a prior read) are updated, rows without are created, and the two id lists are deleted. Rows not mentioned are untouched, however far in the future they lie. Any field may be omitted.

    This is what diffSchedule in ./schedule produces from an edited document, and what the platform's own calendars send.