---
title: "POST /calendar"
method: POST
path: "/calendar"
tags: ["calendar"]
---

# POST /calendar

`POST /calendar`

## Request

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

create a calendar

## 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 `201`

calendar create 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/post.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)
