Skip to content
← Public packages

@kentcdodds/cal-com

Cal.com helpers for booking pages, event types, slots, and webhooks.

src/reschedule-booking.js

16 lines · 739 B · JavaScript
import { rescheduleBooking } from './cal-com.js'

/**
 * Reschedule a Cal.com booking to a new start time.
 * @param {Object} input
 * @param {string} input.bookingUid Booking UID to reschedule (`uid` accepted as alias).
 * @param {string} input.start New UTC ISO start time in the request body.
 * @returns {Promise<Record<string, unknown>>} Updated booking payload.
 * @example
 * import rescheduleBooking from 'kody:@kentcdodds/cal-com/reschedule-booking'
 * const result = await rescheduleBooking({ bookingUid: 'abc123', start: '2026-06-02T16:00:00Z' })
 * // => { uid: 'abc123', start: '2026-06-02T16:00:00Z', ... }
 */
export default async function rescheduleBookingEntrypoint(input = {}) {
  return await rescheduleBooking(input)
}