提交分块上传任务
标签:文件
请求说明
字段 | 值 |
---|---|
请求地址 | https://openapi.wps.cn/v7/multipart_upload_tasks/{upload_id}/commit |
HTTP 方法 | POST |
接口描述 | 对于分块上传任务,此接口同时处理合并分块上传和创建文件两个任务。公网环境下此接口可能因合并分块上传流程耗时过长而返回错误码409007001(分块上传合并任务进行中),客户端应在收到此错误码至少2秒后重试调用此接口,直到返回成功响应或收到其他错误信息。 |
签名方式 | KSO-1 |
限频策略 | 无 |
权限要求 | 查询和管理文件(应用授权) kso.file.readwrite 应用身份管理文档(应用授权) kso.appfile.readwrite 查询和管理文件(用户授权) kso.file.readwrite |
请求头 (Headers)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
X-Kso-Id-Type | string | 否 | 类型 * internal - 内部 * external - 外部 | internal , external |
路径参数 (Path)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
upload_id | string | 是 | 上传标识,初始化分块上传时获取 | - |
请求体(Body)
请求体格式: application/json
没有可用的数据
请求体示例
json
{}
响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"data": {
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": 0,
"drive": {
"allotee_id": "string",
"allotee_type": "user",
"company_id": "string",
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": 0,
"description": "string",
"ext_attrs": [
{
"name": "string",
"value": "string"
}
],
"id": "string",
"mtime": 0,
"name": "string",
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
},
"source": "string",
"status": "inuse"
},
"drive_id": "string",
"ext_attrs": [
{
"name": "string",
"value": "string"
}
],
"id": "string",
"link_id": "string",
"link_url": "string",
"modified_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"mtime": 0,
"name": "string",
"parent_id": "string",
"permission": {
"comment": true,
"copy": true,
"copy_content": true,
"delete": true,
"download": true,
"history": true,
"list": true,
"move": true,
"new_empty": true,
"perm_ctl": true,
"preview": true,
"print": true,
"rename": true,
"saveas": true,
"secret": true,
"share": true,
"update": true,
"upload": true
},
"shared": true,
"size": 0,
"type": "folder",
"version": 0
},
"code": 0,
"msg": "string"
}