---
title: "PUT /calendar/id/{id}"
method: PUT
path: "/calendar/id/{id}"
tags: ["calendar"]
---

# PUT /calendar/id/{id}

`PUT /calendar/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/calendar/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/calendar/id/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

update calendar

## Path parameters

- `id` string, required

## Query parameters

- `dryRun` boolean

## Request body

- Calendar
  - `id` string
  - `version` string
  - `caldavAccountId` string
  - `calendarColor` string, required
  - `calendarKey` string
  - `calendarSharingPermissions` CalendarSharingPermissions[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `permissionType` 'ADMIN' | 'READ' | 'READ_WRITE'
    - `userId` string
  - `createdDate` integer
  - `lastEventsSyncToken` string
  - `lastModifiedDate` integer
  - `mailAccountId` string
  - `name` string, required
  - `ownerId` string
  - `sharePrivateEvents` boolean
  - `synchronize` boolean

## Response `200`

calendar update response

- Calendar
  - `id` string
  - `version` string
  - `caldavAccountId` string
  - `calendarColor` string, required
  - `calendarKey` string
  - `calendarSharingPermissions` CalendarSharingPermissions[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `permissionType` 'ADMIN' | 'READ' | 'READ_WRITE'
    - `userId` string
  - `createdDate` integer
  - `lastEventsSyncToken` string
  - `lastModifiedDate` integer
  - `mailAccountId` string
  - `name` string, required
  - `ownerId` string
  - `sharePrivateEvents` boolean
  - `synchronize` boolean

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-06-29** `a926aad6dc0c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/calendar/id/:id/put.md)

---

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