---
title: "Update Google Drive folders for store ingestion"
method: PUT
path: "/v1/integrations/google_drive/folders"
tags: ["integrations"]
---

# Update Google Drive folders for store ingestion

`PUT /v1/integrations/google_drive/folders`

Replace the Google Drive folders selected for ingestion into a store.

## Request body

- GoogleDriveFolderSelectionUpdateParams — Operation for updating Google Drive file and folder ingestion selection.
  - `installation_id` string, uuid, required — Google Drive installation ID
  - `operation` 'sync' | 'unsync', required — Whether to sync or unsync the requested Drive items
  - `folder_ids` string[] — Google Drive folder IDs to apply the operation to
  - `file_ids` string[] — Google Drive file IDs to apply the operation to

## Response `200`

Updated Google Drive folder selection

- GoogleDriveFolderSelectionUpdateResponse — Google Drive folder selection update response.
  - `data` GoogleDriveFolderSelectionUpdate, required — Result of updating Google Drive folder selection.
    - `store_id` string, required — Mixedbread store ID
    - `selected_folder_ids` string[], required — Selected Google Drive folder IDs
    - `selected_file_ids` string[] — Selected Google Drive file IDs
    - `excluded_children` GoogleDriveExcludedChildren[] — Direct child exclusions grouped by selected parent folder
      - `parent_folder_id` string, required — Selected Google Drive parent folder ID
      - `child_ids` string[], required — Direct child Drive file or folder IDs excluded under the parent
    - `backfill_folder_ids` string[], required — Folders queued for backfill ingestion
    - `backfill_file_ids` string[] — Files queued for backfill ingestion
    - `skipped_folders` object, required — Folder IDs skipped with a reason
    - `skipped_files` object — File IDs skipped with a reason

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/revisions/2eece97b5ae5/schema)
