Skip to content

changeBookingSpot

changeBookingSpot(booking: ID!, spot: EntityRef!, holderKey: String!): UpdateBookingSpotResult!

Move the viewer's own confirmed booking to another free spot on the same session — a different bike, mat or seat.

Pick the spot through holdSpots first, under the same holderKey, so nobody else can take it while the buyer confirms; a spot that is free but not yet held is taken here through the same hold. The hold is released once the booking sits in the spot, and the spot the booking left goes back on sale.

Refused after Session.spotChangesUntil (or when it is null), for a booking that holds more than one spot, for a spot sold or held by somebody else, and for one that isn't on the map this session sells against.

Arguments

bookingID!
holderKeyString!

Returns

UpdateBookingSpotResult!

See UpdateBookingSpotResult for the full shape.

Try it

Authentication
Example
Query
mutation ChangeBookingSpot($booking: ID!, $spot: EntityRef!, $holderKey: String!) {
  changeBookingSpot(booking: $booking, spot: $spot, holderKey: $holderKey) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql