跳到主要内容

Preflight check before upload (可选API)

MethodAPI描述
OPTIONS/context/files/content上传前检查

请求体:

{
"name": "集成说明.docx", //文件名称
"size": 65537, //文件大小
"pathType": "企业空间/个人空间/我的共享/收到的共享" //从box中获得
}

成功响应(200):

{  
"created_by": {
"id": "301",
"email": "docstest02@lenovo.com",
"name": "docstest02"
},
"owner": {
"id": "301",
"email": "docstest02@lenovo.com",
"name": "docstest02"
},
"id": "483",
"modified_by": {
"id": "301",
"email": "docstest02@lenovo.com",
"name": "docstest02"
},
"description": "",
"name": "/study/Nodejs/Demo/集成说明.docx",
"permissions": {
"write": "true",
"read": "true",
"download": false,
"print": true
},
"created_at": "2020-03-25T02:57:38.000Z",
"modified_at": "2020-03-25T02:57:38.000Z",
"size": 0,
"protection_status": "normal",
"version": "1"
}

错误响应:
文件名冲突时返回409状态码