---
title: "Make the calendar link a channel subscribes to"
method: POST
path: "/api/v1/short-stay/feeds"
tags: ["Short stay"]
---

# Make the calendar link a channel subscribes to

`POST /api/v1/short-stay/feeds`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/short-stay/feeds`
- Auth: API key in cookie `better-auth.session_token`

Paste the returned `url` into the channel as an imported calendar: every night the listing is taken shows there as not available, with no guest names and no money. Name the `channel` it is for and that channel’s own stays are left out, so it is never sent back its own bookings. Making a link for the same listing and channel again replaces the old one, which stops working.

## Request body

- object
  - `unitId` string, required: Stable record id, e.g. `lse_012`.
  - `channel` 'airbnb' | 'booking_com' | 'vrbo' | 'direct' | 'expedia' | 'other', nullable

## Response `200`

The link, shown this once.

- object
  - `ok` unknown, required
  - `data` object, required
    - `feed` object, required
      - `id` string, required: Stable record id, e.g. `lse_012`.
      - `unitId` string, required: Stable record id, e.g. `lse_012`.
      - `channel` 'airbnb' | 'booking_com' | 'vrbo' | 'direct' | 'expedia' | 'other', nullable, required
      - `createdAt` string, required: ISO 8601 timestamp.
      - `lastReadAt` string, nullable, required: ISO 8601 timestamp.
    - `url` string, required: The address to paste into the channel. Shown once: only its hash is kept.
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `404`: No unit with that id on this portfolio.

---

[API](https://skmtc.dev/dardaris/apis/dardaris-api.md) · [All operations](https://skmtc.dev/dardaris/apis/dardaris-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dardaris/apis/dardaris-api/revisions/4aff33835c73?raw)
