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)
- fromstringrequiredPattern: ^\d{4}-\d{2}-\d{2}$.
- tostringrequiredPattern: ^\d{4}-\d{2}-\d{2}$.
- weekdayslist of integer
- typestringrequiredOne of: closed_to_arrival, closed_to_departure, stop_sell, min_stay, max_stay, min_advance, max_advance.
- valueintegerAt least 0. At most 3650.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring