Re-index Workspace Files
Enterprise Search
Re-index Workspace Files
1️⃣ Overview
Purpose:
Triggers a search index job for all files in the specified workspace.
Supports two modes controlled by the full_reindex flag:
- Full Re-index — indexes all documents present in the workspace from scratch.
- Incremental Index — processes only new or changed documents since the last index run.
2️⃣ Endpoint
POST /ai/api/v2/enterprise-search/connector/dg-s3-workspace/re-index?workspace_id={workspace_id}&full_reindex={true|false}
3️⃣ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace_id | string | ✅ Yes | The ID of the workspace whose files are to be indexed |
| full_reindex | boolean | ❌ No | true for full re-index of all documents; false for incremental index of new or changed documents only (default: false) |
4️⃣ Authentication
Requires authentication using:
Authorization: Bearer <token>
5️⃣ Request Headers
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
6️⃣ Example Request
Full Re-index
curl --location 'https://ai.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/re-index?workspace_id={workspaceId}&full_reindex=true' \
--header 'Authorization: Bearer <token>' \
--data-raw '{}'
Incremental Index
curl --location 'https://ai.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/re-index?workspace_id={workspaceId}&full_reindex=false' \
--header 'Authorization: Bearer <token>' \
--data-raw '{}'
7️⃣ Behavior Summary
Triggers a search indexing job for the specified workspace.
full_reindex=true: Re-indexes all documents in the workspace from scratch.
full_reindex=false: Performs an incremental index, processing only new or changed documents since the last run.
POST
Re-index Workspace Files
Authorizations
This API uses OAuth 2.0 with the authorization code grant flow.
Query Parameters
The ID of the workspace whose files are to be indexed
Controls the indexing mode. true \u2014 performs a full re-index of all documents in the workspace. false \u2014 performs an incremental index, processing only new or changed documents since the last index run.
Body
application/json
The body is of type object.
Response
200
Re-index Workspace Files