Skip to main content

Accounts (Google)

Disconnect Account

This API endpoint is triggered by the extension interface to unauthorize a provisioned Google calendar account.

Endpoint

POST /google/accounts HTTP/1.1
Host: api.atomcal.com/api/v2
Content-Type: application/x-www-form-urlencoded
Triggered by: Extension interface
Authentication: security.verifyAuthToken
Query: req.query.account_id

It also deletes any saved Google calendars and Google events associated with this account before deleting the account from the database.

Example Responses

200 (successful operation)

res.status(200).send({ memberAccounts, calendarAccounts });

400 (bad response)

Boom.badRequest(errorMessage)

Implementation details

Delete the user account data using the account_id passed as query from the extension UI. Also read the associated calendars with this account and their events and delete them as well.

Finally read the remaining Google accounts and return.

Edge cases

N/A