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 name Comment (description) file_id pre-shared file id (required) string password password for link sharing string is_https Whether the returned share_url protocol is https number
Return field description
{"code":0,"success":true, "share_url": "http://private.babel.cc/share.do?s=xxxxxxxxxxx"}
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.