Update prices, availability and restrictions
wubook_update_inventoryDestructiveIdempotent
WRITE: overwrite daily prices, availability and stay restrictions of one rate. products maps a product id to a list of day objects; the first object is the day from, the next the following day, and so on. Only the fields you send per day change. Changes can be pushed to connected channels (OTAs) and affect live bookings, so confirm the values with the user first. POST /kp/inventory/write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | First day the lists start at, yyyy-mm-dd. | |
| rate_id | Yes | Rate id (wubook_list_rates). | |
| products | Yes | Product id → one object per day, e.g. {"12": [{"p": 90, "a": 3}, {"p": 95}]}. Keys: p price, a availability, m/M min/max stay, ma/Ma by arrival, ni no check-in, no no check-out, c closed, nt no OTA, mx/Mx advance, o overbooking, l max OTA. |