Skip to main content

Folders API

Generic per-kind folders (charts / dashboards / datasets).

This page lists 4 endpoints (OpenAPI tag folders). It is generated from openapi.json; see the REST API overview for authentication, CSRF and error conventions.

MethodPathOperation idNotes
GET/api/ws/{workspace}/folders/{kind}folders_list
POST/api/ws/{workspace}/folders/{kind}folders_create
PATCH/api/ws/{workspace}/folders/{kind}/{id}folders_rename
DELETE/api/ws/{workspace}/folders/{kind}/{id}folders_delete

GET /api/ws/{workspace}/folders/{kind}​

Operation id: folders_list. Auth: Session cookie. Forbidden (403): Missing the entity kind's read permission.

ParameterInTypeRequiredDescription
workspacepathstringyesWorkspace slug
kindpathstringyesEntity kind: charts | dashboards | datasets
workspacepathstringyes

Response 200 (application/json): array of FolderDto

FieldTypeRequiredDescription
idstringyes
namestringyes
StatusMeaning
200Folders for the entity kind in the workspace
401Not authenticated
403Missing the entity kind's read permission
404Unknown entity kind
500Internal error

POST /api/ws/{workspace}/folders/{kind}​

Operation id: folders_create. Auth: Session cookie and X-Egret-CSRF header. Forbidden (403): Missing the entity kind's manage permission.

ParameterInTypeRequiredDescription
workspacepathstringyesWorkspace slug
kindpathstringyesEntity kind: charts | dashboards | datasets
workspacepathstringyes

Request body (application/json): CreateFolder

FieldTypeRequiredDescription
namestringyes

Response 200 (application/json): FolderDto

FieldTypeRequiredDescription
idstringyes
namestringyes
StatusMeaning
200Folder created
401Not authenticated
403Missing the entity kind's manage permission
404Unknown entity kind
500Internal error

PATCH /api/ws/{workspace}/folders/{kind}/{id}​

Operation id: folders_rename. Auth: Session cookie and X-Egret-CSRF header. Forbidden (403): Missing the entity kind's manage permission.

ParameterInTypeRequiredDescription
workspacepathstringyesWorkspace slug
kindpathstringyesEntity kind: charts | dashboards | datasets
idpathstring (uuid)yesFolder id
workspacepathstringyes

Request body (application/json): RenameFolder

FieldTypeRequiredDescription
namestringyes

Response 200 (application/json): FolderDto

FieldTypeRequiredDescription
idstringyes
namestringyes
StatusMeaning
200Folder renamed
401Not authenticated
403Missing the entity kind's manage permission
404Unknown entity kind, or no such folder in this workspace
500Internal error

DELETE /api/ws/{workspace}/folders/{kind}/{id}​

Operation id: folders_delete. Auth: Session cookie and X-Egret-CSRF header. Forbidden (403): Missing the entity kind's manage permission.

ParameterInTypeRequiredDescription
workspacepathstringyesWorkspace slug
kindpathstringyesEntity kind: charts | dashboards | datasets
idpathstring (uuid)yesFolder id
workspacepathstringyes

Response 200 (application/json): Ack

FieldTypeRequiredDescription
okbooleanyes
StatusMeaning
200Folder deleted
401Not authenticated
403Missing the entity kind's manage permission
404Unknown entity kind, or no such folder in this workspace
500Internal error