Add a room
post/lodging/units
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Mcp
rivier_lodging_unit_create- Sdk
bookings.unit.create- Cli
bookings unit create
Request bodyapplication/json, required
- roomTypeIdstring (uuid)required
- namestringrequiredAt most 60 characters.
- floorstring or null
- areaIdstring (uuid) or null
- notesstringDefault: . At most 2000 characters.
- overridesobjectDefault: {}.
- sizeM2integerAt least 1. At most 5000.
- bedroomsintegerAt least 0. At most 30.
- bathroomsnumberAt least 0. At most 30.
- smokingstringOne of: non_smoking, smoking, either.
- viewslist of string
- sleepinglist of object
- namestringrequiredAt most 60 characters.
- kindstringOne of: bedroom, living_room, studio, other. Default: bedroom.
- bedslist of objectrequired
- typestringrequiredOne of: single, double, queen, king, twin, sofa_bed, bunk, futon, crib, extra_bed.
- countintegerrequiredAt least 1. At most 10.
- typestringrequired
- namestringrequired
- sizeM2integer
- contentobjectDefault: {}.
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