AddressBook
AddressBook
Section titled “AddressBook”Configures address book and contact storage settings.
This object can be configured from the WebUI under Settings › Calendar & Contacts › Address Book
Fields
Section titled “Fields”defaultDisplayName
Section titled “defaultDisplayName”Type:
String?· default:"Stalwart Address Book"Specifies the default display name for a contact when it is created
defaultHrefName
Section titled “defaultHrefName”Type:
String?· default:"default"Specifies the default href name for a contact when it is created
maxVCardSize
Section titled “maxVCardSize”Type:
Size· default:524288Specifies the maximum size of a vCard file that can be uploaded to the server
maxAddressBooks
Section titled “maxAddressBooks”Type:
UnsignedInt?· default:250· min: 1The default maximum number of address books a user can create
maxContacts
Section titled “maxContacts”Type:
UnsignedInt?· min: 1The default maximum number of contact cards a user can create
JMAP API
Section titled “JMAP API”The AddressBook singleton is available via the urn:stalwart:jmap capability.
x:AddressBook/get
Section titled “x:AddressBook/get”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 sysAddressBookGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:AddressBook/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:AddressBook/set
Section titled “x:AddressBook/set”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 sysAddressBookUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:AddressBook/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.
stalwart-cli get AddressBookUpdate
Section titled “Update”stalwart-cli update AddressBook --field defaultDisplayName='updated value'