设置链接分享密码
| 属性 | 值 |
|---|---|
| HTTP 方法 | POST |
| 接口路径 | /nd/api/share/set_share_password |
| 所属分类 | 分享 API |
接口说明
文件链接分享已打开,设置链接分享的密码。
POST 请求体参数
| 参数 | 类型 | 说明(保留原资料的必填、默认值及范围) |
|---|---|---|
file_id |
string |
预分享的文件 id(必填) |
password |
string |
链接分享的密码 |
is_https |
number |
返回的 share_url 协议是否为 https |
表格可左右滚动查看
返回字段说明
{"code":0,"success":true, "share_url": "https://share.example.com/share.do?s=<SHARE_ID>"}
调用说明
- 调用前需完成 获取 token 或相应免登录认证,并在请求 Header 中携带
Authorization: Bearer <access_token>。 - 参数和返回字段如因部署版本存在差异,应以实际私有云 API 文档和联调结果为准。
- 所属分类:分享 API。