Set link sharing password
| Properties | Values |
|---|---|
| HTTP method | POST |
| Interface path | /nd/api/share/set_share_password |
| Category | Share API |
Interface description
Interface path: /nd/api/share/set_share_password
HTTP method: POST
HTTP method: POST
File link sharing is turned on, set a password for link sharing.
POST request body parameters
| Parameter | Type | Description (source requirements, defaults and scope) |
|---|---|---|
file_id |
string |
pre-shared file id (required) |
password |
string |
password for link sharing |
is_https |
number |
Whether the returned share_url protocol is https |
Scroll horizontally to view all columns
Return field description
{"code":0,"success":true, "share_url": "https://share.example.com/share.do?s=<SHARE_ID>"}
Call instructions
- Before calling, you need to complete Get token or the corresponding login-free authentication, and carry
Authorization: Bearer <access_token>in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail.
- Category: Sharing API.