Skip to content

删除文件

适用版本>=v7.0.2412b.20241226

接口说明:批量删除文件

请求说明

请求地址配置域名+/openapi+/v7/filetransfer/file/batch_delete
请求方法POST
签名方式KSO-1(配置域名+/openapi不参与签名)
权限要求文件摆渡(应用授权) kso.filetransfer.readwrite

请求头(Header)

名称参数类型是否必填说明
Content-Typestring使用:application/json
X-Kso-DatestringRFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT
X-Kso-AuthorizationstringKSO-1 签名值,详见《签名方法》
Authorizationstring授权凭证,格式为:Bearer {access_token}

请求体(Body)

名称参数类型是否必填说明
account_idstring三方用户ID
account_typestring可选值:third_user, 表示account_id为三方用户ID
boxstringoutbox:发件箱 或 inbox:收件箱
file_idsstring[]文件ID数组,最大50个

响应体(Response)

名称类型说明
dataobject
codeinteger错误码
msgstring状态信息
detailstring详细信息

响应体示例

json
{
  "data": null,
  "msg": "ok",
  "code": 20000000
}