price-watches

Set or clear a price watch's target

Runs priceWatch.updateTarget; owner-only. A null targetPrice clears the target. Rejects with 400 when the target is not below the baseline the watch started at.

patch/v1/price-watches/{publicId}/target

Request

  • Base URL: https://api.getmyhotels.com
  • URL: https://api.getmyhotels.com/v1/price-watches/{publicId}/target
  • Auth: HTTP bearer

Path parameters

publicIdstring required

Request body

targetPricenumber nullable required

Response

Success

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.