--- title: Set link sharing password description: POST /nd/api/share/set_share_password: Set the link sharing password. Interface description, including path, method, parameters and return information. slug: api-post-nd-api-share-set-share-password lang: en category: Sharing API category_order: 8 order: 131 api_method: POST api_path: /nd/api/share/set_share_password api_label: Set link sharing password keywords: - API - Set link sharing password - /nd/api/share/set_share_password --- # 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](api-post-api-token-do.md) or the corresponding login-free authentication, and carry `Authorization: Bearer ` 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.