From the console
The fastest path is the console UI:- Create a new workspace from Workspaces → New.
- Open the workspace, then choose Sync from Google Drive in its settings.
- Paste the service account JSON, pick the folder, and trigger the first import.
From the API
Convert any manual workspace into a Google Drive-synced workspace by issuing aPATCH /api/v3/workspaces/{id} with a datasource object. Conversion is one-way: you cannot revert a synced workspace back to manual.
service_account_file: JSON-encoded string of your Google service account credentials. The service account needs read access to the target folder.
folder_id(required): the Google Drive folder ID to sync from. It’s the last path segment of the folder’s URL in Drive (drive.google.com/drive/folders/<folder_id>), or usePOST /api/v3/workspaces/datasource/browse(alpha) to list the folders shared with your service account.recursive(optional): include subfolders
sync field returned by GET /api/v3/workspaces/{id}.
For the full request shape, see PATCH /api/v3/workspaces/{id} in the API reference.