v42

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-2129120150.2 KB
KG API

Add file to graph

Add a file to a Knowledge Graph.

post/v1/graphs/{graph_id}/file

Path parameters

graph_idstring uuid required

The unique identifier of the Knowledge Graph.

Request body

file_idstring required

The unique identifier of the file.

Response

idstring required

A unique identifier of the file.

created_atstring date-time required

The timestamp when the file was uploaded.

namestring required

The name of the file.

graph_idsstring[] required

A list of Knowledge Graph IDs that the file is associated with.

If you provided a graphId during upload, the file is associated with that Knowledge Graph. However, the graph_ids field in the upload response is an empty list. The association will be visible in the graph_ids list when you retrieve the file using the file retrieval endpoint.

statusstring required

The processing status of the file.