Skip to content

Calendar

Configures calendar settings including iCalendar limits and default names.

This object can be configured from the WebUI under Settings › Calendar & Contacts › Calendar

Type: String? · default: "Stalwart Calendar"

Specifies the default display name for a calendar when it is created

Type: String? · default: "default"

Specifies the default href name for a calendar when it is created

Type: UnsignedInt · default: 20 · max: 100000

Specifies the maximum number of attendees that can be included in a single iCalendar instance

Type: UnsignedInt · default: 3000

Specifies the maximum number of instances that can be generated from a recurring iCalendar event

Type: Size · default: 524288

Specifies the maximum size of an iCalendar file that can be uploaded to the server

Type: UnsignedInt? · default: 250 · min: 1

The default maximum number of calendars a user can create

Type: UnsignedInt? · min: 1

The default maximum number of calendar events a user can create

Type: UnsignedInt? · default: 100 · min: 1

The default maximum number of participant identities a user can create

Type: UnsignedInt? · min: 1

The default maximum number of notifications a user can create for calendar events

Type: UnsignedInt · default: 10 · min: 1

Maximum number of calendars a single calendar event can belong to

Type: Duration · default: 31536000000

Maximum time span between the after and before arguments of a calendar event query that expands recurrences

Type: Duration · default: 31536000000

Maximum time span that can be requested when querying the availability (free/busy) of a principal

Type: Rate? · default: {"count":100,"period":60000}

Maximum rate at which an account can query principal availability

Type: Size · default: 5242880

Maximum total size of the attachments embedded in a single calendar event

The Calendar singleton is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

For singletons, the ids argument should be the literal singleton (or null to return the single instance).

This method requires the sysCalendarGet permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Calendar/get",
{
"ids": [
"singleton"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.

This method requires the sysCalendarUpdate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Calendar/set",
{
"update": {
"singleton": {
"defaultDisplayName": "updated value"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Terminal window
stalwart-cli get Calendar
Terminal window
stalwart-cli update Calendar --field defaultDisplayName='updated value'

Defines a rate limit as a count over a time period.

Type: UnsignedInt · default: 0 · min: 1 · max: 1000000

Count

Type: Duration · default: 0 · min: 1

Period