SnozeDevelopers
API referenceCalendar

Update a calendar event

Applies the patch to the event, or for a database-backed event writes the change through to the source record's fields, and queues a provider push where one is linked. The caller needs edit access to the event's item. Returns a not-found error for an unknown or deleted event and a conflict when `expectedRevision` no longer matches the stored revision. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

PATCH
/v1/workspaces/{workspaceId}/calendar/events/{eventId}
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
eventId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/workspaces/string/calendar/events/string" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 0  }'
{  "data": {    "id": "string",    "workspaceId": "string",    "sourceId": "string",    "sourceKind": "native",    "calendarId": "string",    "recordSourceId": "string",    "recordId": "string",    "databaseId": "string",    "title": "string",    "description": "string",    "location": "string",    "allDay": true,    "startsAt": "string",    "endsAt": "string",    "startDate": "string",    "endDate": "string",    "timeZone": "string",    "recurrenceRule": "string",    "recurrenceExceptions": [      "string"    ],    "status": "confirmed",    "visibility": "default",    "syncState": "current",    "revision": 0,    "attendees": [      {        "id": "string",        "userId": "string",        "email": "string",        "displayName": "string",        "responseStatus": "needs_action",        "optional": true,        "organizer": true      }    ],    "links": [      {        "id": "string",        "kind": "string",        "label": "string",        "url": "string"      }    ],    "createdAt": "string",    "updatedAt": "string"  }}