
| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 钉盘应用盘空间写权限 | API Explorer |
| 第三方企业应用 | 支持 | 钉盘应用盘空间写权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 钉盘应用盘空间写权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | param.error | Invalid Param | 参数错误 |
| 400 | request.overlimit | You have sent too many requests. | 请求过于频繁 |
| 400 | unsupported.operation | Does not support the operation | 暂不支持该操作 |
| 400 | no.priviledge | You are not authorized to perform this operation. | 你没有权限进行此操作 |
| 400 | addSpace.forbiden | Add space is forbiden. | 你所在的组织的管理员已设置:禁止新建共享空间,已创建空间可正常使用 |
| 400 | name.invalid | Space name is invalid. | 空间名称非法 |
| 500 | unknown.error | Unknown Error | 未知错误 |
{
"name" : "String",
"unionId" : "String"
}curl --location --request POST '/v1.0/drive/spaces' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name" : "String",
"unionId" : "String"
}'{
"spaceId" : "12345",
"spaceName" : "新建空间名称",
"spaceType" : "org",
"quota" : 1024000,
"usedQuota" : 512000,
"permissionMode" : "acl",
"createTime" : "2016-02-28T10:47:08Z",
"modifyTime" : "2016-02-28T10:47:08Z"
}