Create or Update Calendar Event
Creates a calendar event, or updates it when eventId is supplied.
Authentication: X-API-KEY header (see Authentication).
Request body
| Field | Type | Description |
|---|---|---|
| eventId | string | Existing event id to update. Omit to create. |
| startTime / endTime | datetime | Event start and end. |
| timezone | string | IANA timezone. |
| fullDay | boolean | All-day event. |
| busy | boolean | Mark time as busy. |
| summary | string | Event title. |
| description | string | Event description. |
| location | string | Location. |
| userEmail | string | Owner of the event. |
Request
curl -X POST https://api.withmoxie.com/public/action/calendar/createOrUpdate \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"summary": "Kickoff call", "startTime": "2026-07-15T14:00:00", "endTime": "2026-07-15T15:00:00", "timezone": "Europe/Budapest", "userEmail": "jane@acme.example"}'
Response
Returns the created or updated NativeCalendarEvent (including its id).
{
"id": "66b0f9b0c3a9e40012ab9900",
"accountId": 10016,
"userId": 5567,
"externalId": null,
"startDate": "2026-07-15",
"startTime": "14:00:00",
"endDate": "2026-07-15",
"endTime": "15:00:00",
"timezone": "Europe/Budapest",
"summary": "Kickoff call",
"description": null,
"location": null,
"busyEvent": true
}