Skip to content

批量移动文件(夹)

适用版本>=v7.0.2311a.20231109

接口说明:批量移动文件(夹)

请求说明

请求地址配置域名+/graph+/v7/drives/{drive_id}/files/batch_move
请求方法POST
签名方式WPS-4签名/WPS-4-GM签名(配置域名+/graph不参与签名)
权限要求更新文件(用户授权) kso.file.write 应用管理文件(应用授权) kso.appdrive.file.write

请求头(Header)

名称是否必填说明
Content-Type固定为: application/json
Wps-Docs-Date取当前时间, 示例: Wed, 23 Jan 2013 06:43:08 GMT
Wps-Docs-Authorization计算方法参考签名说明
Authorization授权凭证,格式为: Bearer {access_token}

路径参数(Path)

名称参数类型是否必填说明
drive_idstring驱动盘id,<= 1024 characters

请求体(Body)

名称类型是否必填说明
dst_drive_idstring目标驱动盘id,<= 1024 characters
dst_parent_idstring目标父文件id(根目录时为0),<= 1024 characters
file_idsstringArray of strings <= 1024 items [ items <= 1024 characters ]

响应体(Response)

名称类型说明
dataobject批量复制文件(夹)信息返回
task_idstring任务id,<= 1024 characters
codeinteger错误码,参照《错误码说明》
msgstring状态信息
detailstring详细信息

响应体示例

{
  "data": {
    "task_id": "string"
  },
  "code": 0,
  "detail": "string",
  "msg": "string"
}