Rivier/ Reference/ bookings

Bookings platform hold

post/bookings/holds/batch

Hold places in several businesses at once, all or none (409 batch_failed naming the items that could not be held). owner is the platform's own name for who holds (a conversation, a page, an assistant); the same owner holding again releases what it held before. Each holdId books in its business as holdId on POST /bookings; one expiry for all.

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:write
Graphql
Mutation.bookingsPlatformHold
Sdk
bookings.platform.hold
Cli
bookings platform hold

Request bodyapplication/json, required

  • ownerstringrequired
    At most 200 characters.
  • itemslist of objectrequired
    • businessstring (uuid)required
    • serviceIdstring (uuid)required
    • startstring (date-time)required
    • durationMinutesinteger
      At least 5. At most 1440.
    • partySizeinteger
      Default: 1. At least 1. At most 10000.
    • sessionIdstring (uuid)
  • holdMinutesinteger
    At least 1. At most 1440.
  • idempotencyKeystringrequired
    At most 120 characters.

Responses

  • 201application/json
    Success
    • 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