AddFolder
Creates a folder. Two folders with the same name cannot exist under the same parent directory. Upon successful creation, an entity containing the basic information of the folder is returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:AddFolder |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/aidoc/folder/add HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| folderName |
string |
Yes |
The name of the folder, which is specified by the caller. |
“abc” “1234” |
| parentFolderId |
string |
Yes |
The ID of the parent folder. A value of 0 indicates the root directory. |
"0" :parent folder is root "4b648f6d11344f258df876cbdc24dc1f" : folderId |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The ID of the request. |
E38E561C-B996-0E19-8DBC-A218AAE17FBA |
| data | FolderItem |
The data structure of the created folder. |
Examples
Success response
JSON format
{
"requestId": "E38E561C-B996-0E19-8DBC-A218AAE17FBA",
"data": {
"folderId": "4b648f6d11344f258df876cbdc24dc1f",
"folderNum": 2,
"docCount": 0,
"folderName": "“abc” “1234”",
"parentFolderId": "\"0\" :parent folder is root\n\"4b648f6d11344f258df876cbdc24dc1f\" : folderId",
"folderDefault": 0,
"currentLevel": 1,
"syncStatus": -1,
"syncParsingStatus": -1,
"ossDomain": "aidoc-energy-api-example.oss-cn-hangzhou.aliyuncs.com\t",
"ossUpdateBy": "1696462764375572",
"taskId": 0,
"resourcePath": "folder/manual/",
"storageType": 0,
"ossPath": "test/",
"subFolderList": [
{
"folderId": "4b648f6d11344f258df876cbdc24dc1f",
"folderNum": 2,
"docCount": 0,
"folderName": "“abc” “1234”",
"parentFolderId": "\"0\" :parent folder is root\n\"4b648f6d11344f258df876cbdc24dc1f\" : folderId",
"folderDefault": 0,
"currentLevel": 1,
"syncStatus": -1,
"syncParsingStatus": -1,
"ossDomain": "aidoc-energy-api-example.oss-cn-hangzhou.aliyuncs.com\t",
"ossUpdateBy": "1696462764375572",
"taskId": 0,
"resourcePath": "folder/manual/",
"storageType": 0,
"ossPath": "test/",
"subFolderList": [
{
"folderId": "4b648f6d11344f258df876cbdc24dc1f",
"folderNum": 2,
"docCount": 0,
"folderName": "“abc” “1234”",
"parentFolderId": "\"0\" :parent folder is root\n\"4b648f6d11344f258df876cbdc24dc1f\" : folderId",
"folderDefault": 0,
"currentLevel": 1,
"syncStatus": -1,
"syncParsingStatus": -1,
"ossDomain": "aidoc-energy-api-example.oss-cn-hangzhou.aliyuncs.com\t",
"ossUpdateBy": "1696462764375572",
"taskId": 0,
"resourcePath": "folder/manual/",
"storageType": 0,
"ossPath": "test/",
"subFolderList": []
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.