Skip to main content

Create or Update Calendar Event

POST /public/action/calendar/createOrUpdate

Creates a calendar event, or updates it when eventId is supplied.

Authentication: X-API-KEY header (see Authentication).

Request body

FieldTypeDescription
eventIdstringExisting event id to update. Omit to create.
startTime / endTimedatetimeEvent start and end.
timezonestringIANA timezone.
fullDaybooleanAll-day event.
busybooleanMark time as busy.
summarystringEvent title.
descriptionstringEvent description.
locationstringLocation.
userEmailstringOwner 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
}