Folders
List folders.
Get a folder at the provided path/id with its child folders.
Parameters
Returns
200
Successful Response
Endpoint
GET
/workspace/instances/{org_id}/workspaces/{workspace_id}/foldersRequest
cURL
curl -X GET 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"count": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"limit": 0,
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"offset": 0,
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string",
"results": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string"
}
],
"total": 0
}
Create a folder
Creates a new folder in the workspace. The folder needs to have a name and either a parent_folder_id or a parent_folder_path.
Parameters
{
"name": "string",
"parent_folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_folder_path": "string"
}
Returns
201
Folder created successfully.
Endpoint
POST
/workspace/instances/{org_id}/workspaces/{workspace_id}/foldersRequest
cURL
curl -X POST 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string"
}
Endpoint
GET
/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/path{folder_path}Request
cURL
curl -X GET 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/path{folder_path}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string"
}
Summarize folders.
Get a summary of folders in this workspace.
Parameters
Returns
200
Successful Response
Endpoint
GET
/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/summaryRequest
cURL
curl -X GET 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/summary' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"count": 0,
"limit": 0,
"offset": 0,
"results": [
{
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"path": "string"
}
],
"total": 0
}
Delete a folder
Deletes the folder with the given ID. This is not a permanent delete, folder can be restored.
Parameters
Returns
204
Successful Response
Endpoint
DELETE
/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}Request
cURL
curl -X DELETE 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
No response body.
Endpoint
GET
/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}Request
cURL
curl -X GET 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string"
}
Update a folder
Updates a folder's details.
Parameters
{
"name": "string",
"parent_folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_folder_path": "string"
}
Returns
200
Successful Response
Endpoint
PATCH
/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}Request
cURL
curl -X PATCH 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string"
}
Endpoint
POST
/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}Request
cURL
curl -X POST 'https://{service_host}/workspace/instances/{org_id}/workspaces/{workspace_id}/folders/{folder_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted_at": "2024-07-29T15:51:28.071Z",
"deleted_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"modified_at": "2024-07-29T15:51:28.071Z",
"modified_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"name": "string",
"parent_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"path": "string"
}