curl --request GET \
--url https://api.example.com/api/projects/{projectId}/documents/{documentId}/ancestors \
--header 'Authorization: Bearer <token>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"name": "<string>",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"originalPath": "<string>"
}
]Retrieve the ancestor hierarchy of a document from root to the specified document.
curl --request GET \
--url https://api.example.com/api/projects/{projectId}/documents/{documentId}/ancestors \
--header 'Authorization: Bearer <token>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"name": "<string>",
"parentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"originalPath": "<string>"
}
]Personal access token is obtained through your profile
Document unique identifier
Project unique identifier
Was this page helpful?