---
title: "Refresh Calendar Events"
method: POST
path: "/calendars/{calendar_id}/refresh"
tags: ["Calendar"]
---

# Refresh Calendar Events

`POST /calendars/{calendar_id}/refresh`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/calendars/{calendar_id}/refresh`
- Auth: none declared

Refresh calendar events by fetching from the provider and saving to the database.

This endpoint:
1. Fetches events from the calendar provider for the next 2 months
2. Deletes existing event records for this calendar
3. Saves the newly fetched events to the database

- **calendar_id**: The ID of the calendar to refresh (path parameter)

Returns:
    Dictionary with the number of events refreshed

## Path parameters

- `calendar_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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