Reschedule an event on a single calendar with a booking code
Changed onSnapshot 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).
Request
- The document declares no server URL.
- Auth: none declared. Required headers: X-Booking-Code
Headers
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
Response
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
- ○