Portfolio

Link a channel’s calendar to a unit and import its stays

Reads the iCal export once to prove it is a calendar, then imports it as short_stay_sync_connection does. Linking a channel the unit already reads from another address replaces it, and the stays the old address brought are removed in the same write. The address is kept, so the stays are read again every hour without anybody asking. A stay whose description states its payout is priced from it; anything else is held, earning nothing, until somebody prices it.

post/api/v1/units/{id}/calendars

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/units/{id}/calendars
  • Auth: API key in cookie better-auth.session_token

Path parameters

idstring required

Request body

urlstring required
channel'airbnb' | 'booking_com' | 'vrbo' | 'direct' | 'expedia' | 'other' required

Who publishes the calendar. Linking the same channel again replaces its address.

Response

What the calendar said, and what was written.

okunknown required

Changes

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