# Bookings ical feed create

`POST /lodging/ical-feeds` · Rivier · bookings

Publish a calendar of a room type or one room for other systems to read, or add the address of a calendar to read.

- Scope: bookings:admin
- Sdk: bookings.icalFeed.create
- Cli: bookings ical feed create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "roomTypeId": {
      "type": "string",
      "format": "uuid"
    },
    "unitId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "direction": {
      "type": "string",
      "enum": [
        "out",
        "in"
      ]
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 500
    }
  },
  "required": [
    "propertyId",
    "roomTypeId",
    "direction",
    "name"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/lodging/ical-feeds' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "roomTypeId": "string",
  "direction": "out",
  "name": "string"
}'
```
