Change or archive a promotion
patch/lodging/promotions/{id}
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Mcp
rivier_lodging_promotion_update- Sdk
bookings.promotion.update- Cli
bookings promotion update
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- namestringAt most 120 characters.
- codestring or null
- valuenumberAt most 1000000000.
- bookFromstring or null
- bookTostring or null
- stayFromstring or null
- stayTostring or null
- minNightsinteger or null
- roomTypeIdslist of string (uuid)
- ratePlanIdslist of string (uuid)
- contentobjectDefault: {}.
- 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