Booking Codes

Reschedule an event on a single calendar with a booking code

Changed on

Snapshot the bound event's preserved details, then update + consume atomically.

Update FIRST, then consume, matching the GraphQL original and BookingCodeCalendarEventViewSet.create's create-then-consume ordering. Both statements share the one outer transaction.atomic() block below, so the DB outcome (one update, code consumed once) is the same regardless of which runs first -- see that method's docstring for what update-first actually changes (both racers reach the write adapter rather than the loser being turned away by consume_code's row lock first).

post/public/booking/events/reschedule/

Request

  • The document declares no server URL.
  • Auth: none declared. Required headers: X-Booking-Code

Headers

X-Booking-Codestring required

Single-use booking code, minted with the RESCHEDULE permission and bound to a specific event on a single calendar (not an appointment type).

Request body

start_timestring date-time required
end_timestring date-time required
timezonestring required

Response

idinteger required
providerstring
titlestring required
descriptionstring
start_timestring date-time required
end_timestring date-time required
timezonestring required
createdstring date-time required
modifiedstring date-time required
external_idstring required
rrule_stringstring

RRULE string for creating recurring events

parent_recurring_object_idinteger

ID of parent event for recurring instances

is_recurring_instanceboolean required

True if this is an instance of a recurring event

is_recurringboolean required

True if this is a recurring event

is_recurring_exceptionboolean

True if this object is an exception to the recurrence rule (modified occurrence)

recurrence_idstring date-time nullable

For recurring instances, this identifies which occurrence this is

google_calendar_service_accountinteger
calendarinteger

Changes

    • ▲

      removed the required property from the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status