Update Google Calendar settings
/api/settings/google-calendarSave the Google service account's key file, the calendar ID, Keep Google updated, or any of them. Only the key file's address, key id, project and private key are kept, the private key encrypted. Saving the key or the calendar clears what the last Check found. Keep Google updated on needs a Check that passed; off leaves the events on Google as they are. A body over 64 KB is refused with 413.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/settings/google-calendar" \ -H "Content-Type: application/json" \ -d '{ "keyFile": null, "calendarId": null }'{ "keyStored": true, "address": null, "projectId": null, "calendarId": null, "check": null, "limitedUntil": null, "links": null, "sending": false, "removing": false, "canSend": false}Forget Google Calendar settings DELETE
Remove the key, the calendar ID and what Check found, and turn Keep Google updated off. Nothing on Google is changed. Needs the `ManageSettings` permission.
Check the Google Calendar connection POST
Sign in to Google with the stored key and read the calendar's name, time zone, whether Modbot may change its events, and whether it is public. Writes nothing to Google. Answers 200 with what it found, a refusal included. While Google is limiting Modbot nothing is sent and the stored result is returned. Needs the `ManageSettings` permission.