| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 企业存储空间写权限 | API Explorer |
| 第三方企业应用 | 支持 | 企业存储空间写权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 企业存储空间写权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | paramError | %s | 参数错误 |
| 400 | paramError.name | %s | 参数错误-name |
| 400 | paramError.scene | %s | 参数错误-scene |
| 400 | paramError.sceneId | %s | 参数错误-sceneId |
| 403 | permissionDenied | %s | 用户缺少创建空间的权限 |
| 500 | systemError | %s | 系统错误 |
| 500 | unknownError | Unknown Error | 未知错误 |
| 503 | operationTimeout | %s | 请求超时 |
{
"option" : {
"name" : "String",
"quota" : Long,
"capabilities" : {
"canSearch" : Boolean,
"canRename" : Boolean,
"canRecordRecentFile" : Boolean
},
"scene" : "String",
"sceneId" : "String",
"ownerType" : "String"
}
}curl --location --request POST '/v1.0/storage/spaces?unionId=String' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"option" : {
"name" : "String",
"quota" : Long,
"capabilities" : {
"canSearch" : Boolean,
"canRename" : Boolean,
"canRecordRecentFile" : Boolean
},
"scene" : "String",
"sceneId" : "String",
"ownerType" : "String"
}
}'{
"space": {
"id": "string",
"corpId": "string",
"creatorId": "string",
"ownerType": "string",
"ownerId": "string",
"modifierId": "string",
"usedQuota": 0,
"quota": 0,
"status": "string",
"createTime": "string",
"modifiedTime": "string",
"scene": "string",
"sceneId": "string",
"capabilities": {
"canSearch": true,
"canRename": true,
"canRecordRecentFile": true
},
"name": "string"
}
}