Skip to main content
PUT
Replaces every availability window on the listing with the windows you send. Windows you leave out are removed. Dates already taken by a booking are tracked separately and aren’t affected. Send the full set each time. To add a window, read the listing, append to availability.windows, and send the result. The update is checked the same way as an edit in your dashboard:
  • Windows can’t overlap, and each end_date must be after its start_date.
  • Each window must be at least as long as the listing’s minimum stay.
  • Windows must allow stays that meet the minimum-stay rules for the listing’s city or region.
The listing in the URL is the only one updated. On a property with several rooms, update each room’s listing separately. Search results pick up the change within a few minutes.
If availability.synced_from_website is true, Ohana also syncs this listing’s availability from your website, and the next sync may replace what you send here.

Path parameters

string
required
The listing id.

Body

Send JSON with Content-Type: application/json.
Window[]
required
The listing’s new availability, from 1 to 99 windows.
integer | null
Shortest stay you accept, in days. Send null or 0 to remove the minimum. Omit it to keep the current value. Only professional host profiles can set a minimum stay.

Response

Listing
required
The updated Listing.

Errors