Ability to PATCH /properties with specific fields only, without including required fields like pricing.dailyRate
Using the PATCH properties endpoint, if we want to update the "cleaningFee" within the "pricing" object, we are also required to supply the "dailyRate" value in order to keep the call from failing.
This is not desirable, because the PMS "dailyRate" may have been updated for many reasons, multiple times, and there is no "sync" from PMS back to our database, making this a very manual process to keep things aligned.
The only workaround we can think of now is a complex "round-trip" of data:
- call GET Properties endpoint to grab any data that may be overwritten during PATCH
- compare it with our internal data
- call PATCH Properties endpoint with a combination of the desired new data and a data that we need to preserve (e.g., "dailyRate")
In order for PATCH to work properly with any non-"dailyRate" updates, we are stuck with having to provide it even when we don't need or want to update it.
1
vote