Rivier/ Reference/ bookings

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)required
    In the path

Request bodyapplication/json, required

  • namestring
    At most 120 characters.
  • codestring or null
  • valuenumber
    At 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)
  • contentobject
    Default: {}.
  • statusstring
    One of: active, archived.

Responses

  • 200application/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