Rivier/ Reference/ bookings

Replace the amenities a property, area, room type or unit sets itself

put/lodging/amenities/{scopeKind}/{scopeId}

Replace the amenities a property, area, room type or unit sets itself: include or remove an inherited one, with free or paid access, fee, hours, location and a note.

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Mcp
rivier_lodging_amenities_set
Sdk
bookings.amenities.set
Cli
bookings amenities set

Parameters

  • scopeKindstringrequired
    In the path
  • scopeIdstring (uuid)required
    In the path

Request bodyapplication/json, required

  • itemslist of objectrequired
    • amenityIdstringrequired
      At most 80 characters.
    • modestring
      One of: include, exclude. Default: include.
    • accessstring
      One of: free, paid, on_request. Default: free.
    • feeMinorinteger or null
      Default: null.
    • feePerstring or null
      Default: null.
    • hourslist of object or null
      Default: null.
    • locationstring
      Default: . At most 120 characters.
    • quantityinteger or null
      Default: null.
    • contentobject
      Default: {}.

Responses

  • 200application/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