Rivier/ Reference/ bookings

Replace a booking's metadata

patch/bookings/{id}

Replace a booking's metadata: the caller's own data on it, such as a trip's reference. Written with a key; people see it read-only.

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:write
Graphql
Mutation.bookingsBookingUpdate
Sdk
bookings.booking.update
Cli
bookings booking update

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • metadataobjectrequired

Responses

  • 200application/json
    Success
    • idstringrequired
    • serviceIdstringrequired
    • locationIdstring or nullrequired
    • statestringrequired
    • startstringrequired
    • endstringrequired
    • zonestringrequired
    • partySizenumberrequired
    • contactIdstring or nullrequired
    • channelstringrequired
    • priceMinornumberrequired
    • currencystringrequired
    • depositMinornumberrequired
    • paidMinornumberrequired
    • resourceIdslist of stringrequired
    • versionnumberrequired
    • createdAtstringrequired
    • updatedAtstringrequired
    • cancelledAtstring or nullrequired
    • cancelReasonstring or nullrequired
    • cancelledBystring or nullrequired
    • metadataobjectrequired
    • platformCustomerstring or nullrequired
    • noticesstringrequired
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown