Purpose:
Creates a knowledge graph from a specific file within a workspace.
POST /ai/api/v2/knowledge-graph/create?file_id={file_id}&workspace_id={workspace_id}
| Parameter | Type | Required | Description |
|---|---|---|---|
| file_id | string | ✅ Yes | The ID of the file to create the knowledge graph from |
| workspace_id | string | ✅ Yes | Workspace identifier where the knowledge graph will be created |
Requires authentication using:
Authorization: Bearer <token>
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
curl -X POST "https://kg.datagol.ai/ai/api/v2/knowledge-graph/create?file_id={file_id}&workspace_id={workspace_id}" \
-H "Authorization: Bearer <token>"
Creates a knowledge graph by processing the specified file.
Supports semantic graph construction from workspace file content and stores graph metadata for downstream AI processing.