开启文件分享
开启文件分享
标签:文件分享
请求说明
| 字段 | 值 |
|---|---|
请求地址 | https://openapi.wps.cn/v7/drives/{drive_id}/files/{file_id}/open_link |
HTTP 方法 | POST |
接口描述 | 开启文件分享 |
签名方式 | KSO-1 |
限频策略 | 无 |
权限要求 | 查询和管理文件分享(应用授权) kso.file_link.readwrite查询和管理文件分享(用户授权) kso.file_link.readwrite |
路径参数 (Path)
| 属性名 | 类型 | 是否必填 | 描述 | 可选值 |
|---|---|---|---|---|
drive_id | string | 是 | - | |
file_id | string | 是 | - |
请求体(Body)
请求体格式: application/json
没有可用的数据
请求体示例
json
{
"opts": {
"allow_perm_apply": true,
"check_code": "string",
"close_after_expire": true,
"expire_period": 0,
"expire_time": 0
},
"role_id": "string",
"scope": "anyone"
}响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"data": {
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": 0,
"drive_id": "string",
"file_id": "string",
"id": "string",
"mtime": 0,
"opts": {
"allow_perm_apply": true,
"check_code": "string",
"close_after_expire": true,
"expire_period": 0,
"expire_time": 0
},
"role_id": "string",
"scope": "anyone",
"status": "open",
"url": "string"
},
"code": 0,
"msg": "string"
}