Rivier/ Reference/ bookings

Close a service for a span

post/bookings/services/{id}/blocks

Close a service for a span: nothing of it can be held or booked there. Its sessions inside are closed (not deleted) and their holds released, each raising bookings.hold.expired with reason blocked; bookings already made are listed for the business to decide.

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Sdk
bookings.serviceBlock.create
Cli
bookings service block create
Events
bookings.hold.expired

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • fromstring (date-time)required
  • tostring (date-time)required
  • reasonstring
    Default: . At most 300 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