Change or archive an extra or fee
patch/lodging/extras/{id}
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Mcp
rivier_lodging_extra_update- Sdk
bookings.extra.update- Cli
bookings extra update
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- codestringPattern: ^[A-Za-z0-9_-]{1,24}$.
- namestringAt most 120 characters.
- kindstringOne of: extra, fee. Default: extra.
- priceMinorintegerAt least 0. At most 9007199254740991.
- perstringOne of: stay, night, person, person_night. Default: stay.
- taxstringOne of: accommodation, ancillary, none. Default: ancillary.
- mandatorybooleanDefault: false.
- maxQuantityintegerDefault: 1. At least 1. At most 50.
- roomTypeIdslist of string (uuid)Default: [].
- contentobjectDefault: {}.
- positionintegerDefault: 0. At least 0. At most 10000.
- publishedbooleanDefault: true.
- statusstringOne of: active, archived.
Responses
- 200application/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