Rivier/ Reference/ bookings

Add a restriction. The same rows close the direct sale

post/lodging/restrictions

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:write
Mcp
rivier_lodging_restriction_set
Graphql
Mutation.setLodgingRestriction
Sdk
bookings.restriction.create
Cli
bookings restriction create
Events
bookings.restriction.created

Request bodyapplication/json, required

  • propertyIdstring (uuid)required
  • roomTypeIdstring (uuid)
  • ratePlanIdstring (uuid)
  • fromstringrequired
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • tostringrequired
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • weekdayslist of integer
  • typestringrequired
    One of: closed_to_arrival, closed_to_departure, stop_sell, min_stay, max_stay, min_advance, max_advance.
  • valueinteger
    At least 0. At most 3650.

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