{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: /  {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

Calendar

/api/calendar/{calendarId}

Exposes calendars visible to the current user and stages calendar changes until they are validated and committed.

DELETE /api/calendar/{calendarId}

Deletes this calendar using the existing provider and personal-calendar safeguards.

Parameters

Name Location Type Required Description
calendarId path string yes calendar identifier from the request path

Response

Status Content Type Schema Description
204 — — No content.

Example Request

# Request
DELETE /api/calendar/<calendarId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>

# Response
HTTP/1.1 204 No Content

GET /api/calendar/{calendarId}

Exposes calendars visible to the current user and stages calendar changes until they are validated and committed.

Parameters

Name Location Type Required Description
calendarId path string yes calendar identifier from the request path
fields query string no Comma-separated readable properties to include in the JSON response.

Response

Status Content Type Schema Description
200 application/json CalendarRead Successful response.

Example Request

# Request
GET /api/calendar/<calendarId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>

# Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "name": "string",
    "displayName": "string",
    "permission": "READ",
    "externalSource": "string",
    "providerCapabilities": "string"
}

PATCH /api/calendar/{calendarId}

Exposes calendars visible to the current user and stages calendar changes until they are validated and committed.

Parameters

Name Location Type Required Description
calendarId path string yes calendar identifier from the request path

Request Body

Content Type Schema Required Description
application/json CalendarUpdate yes —

Response

Status Content Type Schema Description
200 application/json CalendarRead Successful response.

Example Request

# Request
PATCH /api/calendar/<calendarId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json

{
    "name": "string",
    "externalSource": "string",
    "color": "string",
    "shares": [
        {
            "groupId": "1gm0rjwqbo19kukfxhtikifkv",
            "permission": "READ",
            "userId": "6ltwzbnetxx7cenyfvupjnycr"
        }
    ],
    "reminderDefault": true
}

# Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "name": "string",
    "displayName": "string",
    "permission": "READ",
    "externalSource": "string",
    "providerCapabilities": "string"
}

PUT /api/calendar/{calendarId}

Exposes calendars visible to the current user and stages calendar changes until they are validated and committed.

Parameters

Name Location Type Required Description
calendarId path string yes calendar identifier from the request path

Request Body

Content Type Schema Required Description
application/json CalendarUpdate yes —

Response

Status Content Type Schema Description
200 application/json CalendarRead Successful response.

Example Request

# Request
PUT /api/calendar/<calendarId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json

{
    "name": "string",
    "externalSource": "string",
    "color": "string",
    "shares": [
        {
            "groupId": "1gm0rjwqbo19kukfxhtikifkv",
            "permission": "READ",
            "userId": "6ltwzbnetxx7cenyfvupjnycr"
        }
    ],
    "reminderDefault": true
}

# Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "name": "string",
    "displayName": "string",
    "permission": "READ",
    "externalSource": "string",
    "providerCapabilities": "string"
}

Common Error Responses

The status codes 400, 403, 404, 405, 406, 409, 413, 415, and 500 use the same ApiError JSON error format:

{
    "status": 404,
    "code": "route_not_found",
    "message": "The requested API route does not exist.",
    "details": []
}

Schemas

Request and response schemas used on this page.

CalendarRead

Property Type Required Description
name string no

Returns the optional local calendar name override.

displayName string no

Returns the effective name shown to users.

permission string [READ, WRITE, ADMIN] no

Returns the effective permission of the current user.

externalSource ExternalSourceView no

Returns the external source without authentication data.

providerCapabilities ProviderCapabilities no

Returns capabilities of the currently configured calendar provider.

syncStatus SyncStateView no

Returns synchronization state for an external calendar.

id string no

Unique calendar identifier.

color string no

Optional calendar color in CSS hexadecimal notation.

shares array<ShareEntry> no

Calendar shares that define user and group permissions.

reminderDefault boolean no

Whether new events use the default reminder setting.

type string [PRIVATE, SHARED, EXTERNAL, API] no

Calendar kind derived from its source and lifecycle.

readOnly boolean no

Whether the backing provider prevents modifications.

remoteName string no

Optional display name reported by the external provider.

remoteColor string no

Optional color reported by the external provider.

ExternalSourceView

Property Type Required Description
syncIntervalSeconds number (int64) no —
creatorId string no —
type string no —
url string no —

ProviderCapabilities

Property Type Required Description
attachmentEditing boolean no —
readOnly boolean no —

SyncStateView

Property Type Required Description
sourceId string no —
lastSync number (int64) no —
lastError string no —
nextSync number (int64) no —
status string [IDLE, RUNNING, OK, ERROR] no —

ShareEntry

Property Type Required Description
groupId string no —
permission string [READ, WRITE, ADMIN] no —
userId string no —

ApiError

Property Type Required Description
status integer (int32) yes —
code string yes —
message string yes —
details array<object> no —

CalendarUpdate

Property Type Required Description
name string no Replaces or clears the local calendar name override.

Local calendars require a non-empty name during commit. External calendars may use their remote name when this value is empty.

externalSource ExternalSourceUpdate no

Replaces or clears the external source configuration.

color string no

Optional calendar color in CSS hexadecimal notation.

shares array<ShareEntry> no

Calendar shares that define user and group permissions.

reminderDefault boolean no

Whether new events use the default reminder setting.

ExternalSourceUpdate

Property Type Required Description
syncIntervalSeconds number (int64) no —
authData string no —
type string no —
url string no —
i-net PDFC
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help