sharing

Name Resource Description
Get a token for a password-protected external link POST api/2.0/files/{fileId}/sharedlink/{linkId}/password Returns a token after verifying the password or password hash for a password-protected external link.
Get the shared file information GET api/2.0/files/file/{fileId}/share Returns the detailed information about the shared file with the ID specified in the request.
Get the shared folder information GET api/2.0/files/folder/{folderId}/share Returns the detailed information about the shared folder with the ID specified in the request.
Get the shared link PUT api/2.0/files/{fileId}/sharedlink Returns an external link to the shared file with the ID specified in the request.
Get the shared link template GET api/2.0/files/{fileId}/sharedlink/template Returns a new unsaved link object to the file with the ID specified in the request.
Remove sharing rights DELETE api/2.0/files/share Removes the sharing rights for the group of folders and files with the IDs specified in the request.
Set a cookie for a password-protected external link POST api/2.0/files/sharedlink/password Sets a cookie after verifying the password for a password-protected external link and returns a link to the shared file.
Share a file PUT api/2.0/files/file/{fileId}/share Sets the sharing settings to a file with the ID specified in the request.
Share a folder PUT api/2.0/files/folder/{folderId}/share Sets the sharing settings to a folder with the ID specified in the request.