---
title: "Update all events from selected calendars for a user."
method: POST
path: "/integrations/calendar/events/update"
tags: ["calendar"]
---

# Update all events from selected calendars for a user.

`POST /integrations/calendar/events/update`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/integrations/calendar/events/update`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/integrations/calendar/events/update/post.ts> (a function with typed inputs; its response is checked against the schema)

Fetch all events from a user's selected calendars and save in database.

## Response `200`

Amount of fetched events

- HandlercalendarResponse
  - `fetched_events` integer

## Other responses

- `401`: It's not possible to fetch data from the provider due to some constraint in the user account or an expired token
- `404`: Possible error messages: * an error happened while loading user integrations * an error happened while loading user calendars
- `500`: Internal Server Error

---

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