---
title: "Update Google Drive Selection"
method: POST
path: "/google-drive/installations/{installation_id}/selection"
tags: ["Google Drive"]
---

# Update Google Drive Selection

`POST /google-drive/installations/{installation_id}/selection`

## Request

- Base URL: `https://apigcp.trynia.ai/v2`
- URL: `https://apigcp.trynia.ai/v2/google-drive/installations/{installation_id}/selection`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nozomio-labs/apis/nia-ai-api/docs/google-drive/installations/:installation_id/selection/post.ts> (a function with typed inputs; its response is checked against the schema)

Update which Drive files or folders should be indexed.

## Path parameters

- `installation_id` string, required

## Request body

- RoutesV2GoogleDriveGoogleDriveSelectionRequest
  - `item_ids` string[], required: Drive file or folder IDs to index
  - `display_name` string, nullable: Optional custom display name for the Drive source

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-03-09** `2277d31213d1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/changes/google-drive/installations/:installation_id/selection/post.md)

---

[API](https://skmtc.dev/nozomio-labs/apis/nia-ai-api.md) - [All operations](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/revisions/dbb602a3ef17?raw)
