Disconnect Google Calendar
Disconnect the Google Calendar integration from a call flow.
DELETE
Removes the stored Google tokens from the call flow and turns the integration off. It also resets the calendar settings: the selected calendar, the free/busy and booking calendars, multi-calendar booking, and the slot duration (back to 30 minutes).
If the call flow has an unpublished draft open in the editor, the change is saved to the draft only. Live calls keep the old setting until the draft is published.
Headers
x-workspace-idstringrequiredWorkspace identifier for the API. The call flow must belong to this workspace (or one of its sub-workspaces).
Query Parameters
pathwayIdstringrequiredThe _id of the call flow to disconnect Google Calendar from.
Response Fields
successbooleantrue when the integration was disconnected.
Errors
| Status | Body | When |
|---|---|---|
400 | {"error": "pathwayId query parameter is required"} | No pathwayId |
400 | {"error": "Invalid pathwayId"} | pathwayId isn't a valid ID |
403 | {"error": "You do not have access to this workspace."} | You aren't a member of the x-workspace-id workspace |
403 | {"error": "Pathway does not belong to this workspace."} | The flow belongs to another workspace |
404 | {"error": "Pathway not found"} | No call flow with that ID |
500 | {"error": "..."} | The disconnect failed |
{
"success": true
}Last updated on