curl -X POST "https://app.drime.cloud/api/v1/folders?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My New Folder",
"parentId": null
}'
{
"status": "success",
"folder": {
"id": 485529680,
"name": "My New Folder",
"type": "folder",
"hash": "NDg1NTI5NjgwfA",
"file_size": 0,
"parent_id": null,
"workspace_id": 0,
"path": "485529680",
"created_at": "2024-01-20T10:00:00.000000Z",
"updated_at": "2024-01-20T10:00:00.000000Z"
}
}
Create a new folder
curl -X POST "https://app.drime.cloud/api/v1/folders?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My New Folder",
"parentId": null
}'
{
"status": "success",
"folder": {
"id": 485529680,
"name": "My New Folder",
"type": "folder",
"hash": "NDg1NTI5NjgwfA",
"file_size": 0,
"parent_id": null,
"workspace_id": 0,
"path": "485529680",
"created_at": "2024-01-20T10:00:00.000000Z",
"updated_at": "2024-01-20T10:00:00.000000Z"
}
}
0 for personal workspace.null to create in root.success)curl -X POST "https://app.drime.cloud/api/v1/folders?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My New Folder",
"parentId": null
}'
{
"status": "success",
"folder": {
"id": 485529680,
"name": "My New Folder",
"type": "folder",
"hash": "NDg1NTI5NjgwfA",
"file_size": 0,
"parent_id": null,
"workspace_id": 0,
"path": "485529680",
"created_at": "2024-01-20T10:00:00.000000Z",
"updated_at": "2024-01-20T10:00:00.000000Z"
}
}