Skip to main content
GET
/
v1
/
deployments
/
{deploymentId}
/
folders
/
{folderId}
/
ancestors
List folder ancestors
curl --request GET \
  --url https://{tenant}.cubecloud.dev/api/v1/deployments/{deploymentId}/folders/{folderId}/ancestors \
  --header 'Authorization: Bearer <token>'
[
  {
    "createdAt": "2023-12-25",
    "deploymentId": 123,
    "id": 123,
    "name": "<string>",
    "position": 123,
    "updatedAt": "2023-12-25",
    "createdBy": 123,
    "parentId": 123,
    "updatedBy": 123
  }
]
Return the ancestor chain of a folder, ordered from the workspace root down to (and including) the folder itself. Use this to render a breadcrumb path for a nested folder. For example, for Root / Sales / Q1 requested on the Q1 folder, the response is [Root, Sales, Q1]. Requires visibility access to the target folder. Returns 404 if the folder does not exist or belongs to a different deployment.

Authorizations

Authorization
string
header
required

Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.

Path Parameters

deploymentId
number
required
folderId
number
required

Response

200 - application/json
createdAt
required
deploymentId
integer
required
id
integer
required
name
string
required
position
integer
required
type
enum<string>
required
Available options:
FOLDER,
WORKBOOK,
REPORT
updatedAt
required
createdBy
integer
parentId
integer | null
updatedBy
integer | null