v46

latestOpenAPI 3.0.0MITraw.githubusercontent.com2026-08-0311978417.1 KB
Datasources

Update the parents of a document

Update the parents of a document in the data source identified by {dsId} in the workspace identified by {wId}.

post/api/v1/w/{wId}/spaces/{spaceId}/data_sources/{dsId}/documents/{documentId}/parents

Path parameters

wIdstring required

Unique string identifier for the workspace

spaceIdstring required

ID of the space

dsIdstring required

ID of the data source

documentIdstring required

ID of the document

Request body

parent_idstring

Direct parent ID of the document

parentsstring[]

Document and ancestor ids, with the following convention: parents[0] === documentId, parents[1] === parentId, and then ancestors ids in order

Response

The parents were updated