---
title: "Create calendar record with pending calendar log and trigger SyncICSCalendar job to sync it."
method: POST
path: "/ics-calendars"
tags: ["ics-calendars"]
---

# Create calendar record with pending calendar log and trigger SyncICSCalendar job to sync it.

`POST /ics-calendars`

## Request

- Base URL: `https://api.outdoorsy.com/v0`
- URL: `https://api.outdoorsy.com/v0/ics-calendars`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `API-Key`
- TypeScript: <https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/docs/ics-calendars/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `owner_user_id` integer

## Request body

- LinkICSCalendarRequest
  - `name` string
  - `rental_id` integer
  - `url` string

## Response `200`

- ICSCalendar
  - `active` boolean
  - `host` string
  - `id` integer
  - `name` string
  - `owner_user_id` integer
  - `rental_id` integer
  - `url` string

## Other responses

- `400`: Invalid input or state means you're bad
- `401`: Unauthorized error
- `404`: Not found error
- `default`: An unknown, unexpected error.

---

[API](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation.md) - [All operations](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/revisions/f0cf8f605ea0?raw)
