---
title: "Create a calendar event"
method: POST
path: "/events"
---

# Create a calendar event

`POST /events`

Create a new calendar event based on the provided payload.

## Request body

- object
  - `tenantId` number
  - `userId` string
  - `connectionId` string
  - `calendarId` string
  - `subject` string
  - `body` object
    - `contentType` string
    - `content` string
  - `start` object
    - `dateTime` string, date-time
    - `timeZone` string
  - `end` object
    - `dateTime` string, date-time
    - `timeZone` string
  - `userAttendees` string[]
  - `leadAttendees` string[]
  - `contactAttendees` string[]
  - `otherAttendees` string[]
  - `isOnlineMeeting` boolean
  - `onlineMeetingProvider` string
  - `location` string
  - `sendUpdates` string
  - `entityBaseId` string
  - `entityTypeId` number
  - `isAllDay` boolean

## Response `200`

Calendar event created successfully

- object
  - `message` string
  - `eventId` string

## Other responses

- `400` — Error occurred while creating the calendar event

---

[API](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/revisions/40a7125e0355/schema)
