> ## Documentation Index
> Fetch the complete documentation index at: https://developer.flabslis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reschedule Booking

> Moves a booking you created to a new date and time, exactly as the lab's CRM does. Its status becomes `Rescheduled`, and the change, reason and source ("Client API") appear in the booking's history.

- **When:** any day from today (IST), including a time earlier today. A `Completed` or `Cancelled` booking cannot be moved.
- **Assigned phlebotomist:** stays on the booking and is notified of the new time. The call fails with `409` when the new time is outside their shift, on a day they are on leave, or clashes with another of their visits. Check [Get Slots](/crm/endpoint/get_slots) with the new `date` and `time` first, or send the same request again with `ignoreConflict: true` to reschedule anyway (the CRM's "Reschedule anyway").
- **No phlebotomist assigned:** only the date rules above apply.

Errors (the reason is in `error.details`):
- `400`: `newDate`, `newTime` or `reason` missing or invalid; `newDate` before today; or the booking is completed or cancelled.
- `404`: no such booking, or it is not one you created through this API.
- `409`: the phlebotomist is not free at the new time, or the booking was cancelled or completed while your request was in flight.

Fires `booking.rescheduled` to your webhook.



## OpenAPI

````yaml PUT /client/crm/booking/{leadId}/reschedule
openapi: 3.0.3
info:
  title: Flabs CRM API
  version: 1.0.0
  description: >-
    Branches, corporates, tests, packages, and lead/booking ingestion for the
    Flabs CRM.
servers:
  - url: https://v2.flabs.in
    description: Production
security: []
paths:
  /client/crm/booking/{leadId}/reschedule:
    put:
      summary: Reschedule booking
      description: >-
        Moves a booking you created to a new date and time, exactly as the lab's
        CRM does. Its status becomes `Rescheduled`, and the change, reason and
        source ("Client API") appear in the booking's history.


        - **When:** any day from today (IST), including a time earlier today. A
        `Completed` or `Cancelled` booking cannot be moved.

        - **Assigned phlebotomist:** stays on the booking and is notified of the
        new time. The call fails with `409` when the new time is outside their
        shift, on a day they are on leave, or clashes with another of their
        visits. Check [Get Slots](/crm/endpoint/get_slots) with the new `date`
        and `time` first, or send the same request again with `ignoreConflict:
        true` to reschedule anyway (the CRM's "Reschedule anyway").

        - **No phlebotomist assigned:** only the date rules above apply.


        Errors (the reason is in `error.details`):

        - `400`: `newDate`, `newTime` or `reason` missing or invalid; `newDate`
        before today; or the booking is completed or cancelled.

        - `404`: no such booking, or it is not one you created through this API.

        - `409`: the phlebotomist is not free at the new time, or the booking
        was cancelled or completed while your request was in flight.


        Fires `booking.rescheduled` to your webhook.
      parameters:
        - name: leadId
          in: path
          required: true
          schema:
            type: string
          description: >-
            The `leadId` returned by [Create Lead or
            Booking](/crm/endpoint/create_lead).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - newDate
                - newTime
                - reason
              properties:
                newDate:
                  type: string
                  format: date
                  description: New visit date, `YYYY-MM-DD` in IST. Today or later.
                newTime:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                  description: >-
                    New visit time, `HH:mm` 24-hour in IST, e.g. `10:30` or
                    `16:00`.
                reason:
                  type: string
                  description: >-
                    Why the booking is moved; shown in the lab's booking
                    history. The CRM offers `Patient requested`, `Phlebotomist
                    unavailable`, `Slot conflict` and `Other`.
                notes:
                  type: string
                  description: Optional notes, shown in the booking history.
                ignoreConflict:
                  type: boolean
                  default: false
                  description: >-
                    `true` skips the assigned phlebotomist's availability check
                    and keeps them on the booking even when the new time is
                    outside their shift, on their leave or clashes with another
                    visit. Send it only after a `409`, once you have decided to
                    override it.
            example:
              newDate: '2026-11-28'
              newTime: '10:00'
              reason: Patient requested
      responses:
        '200':
          description: Booking updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  leadId:
                    type: string
                  bookingStatus:
                    type: string
                    description: Booking status after the change, e.g. `Cancelled`.
                  scheduledAt:
                    type: string
                    format: date-time
              example:
                success: true
                leadId: 6530a4a6f1d2c8b7e9a54321
                bookingStatus: Rescheduled
                scheduledAt: '2026-11-28T04:30:00.000Z'
        4XX:
          $ref: '#/components/responses/ClientError'
        5XX:
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  responses:
    ClientError:
      description: Validation or auth error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            success: false
            status: 400
            message: Bad Request
            error:
              details: first_name is required
    ServerError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            success: false
            status: 500
            message: Internal Server Error
            error:
              details: An unexpected error occurred
  schemas:
    ErrorBody:
      type: object
      properties:
        success:
          type: boolean
          example: false
        status:
          type: integer
        message:
          type: string
        error:
          type: object
          properties:
            details:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT obtained from `POST /client/auth/token`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.