Check the Google Calendar connection
/api/settings/google-calendar/checkSign 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.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/settings/google-calendar/check"{ "keyStored": true, "address": null, "projectId": null, "calendarId": null, "check": null, "limitedUntil": null, "links": null, "sending": false, "removing": false, "canSend": false}Update Google Calendar settings PUT
Save 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.
Tick all upcoming events for Google Calendar POST
Tick Google Calendar on every scheduled or open event that everyone may see. Events only the group's members see are left as they are. They are sent once Keep Google updated is on. Needs a Check that passed. Needs the `ManageSettings` permission.