PUT api/2.0/files/{fileId}/sharedlink This function requires authentication

Description

Returns an external link to the shared file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID string some text
share
sent in body
Sharing rights None, ReadWrite, Read, Restrict, Varies, Review, Comment, FillForms, CustomFilter, true
Example
PUT api/2.0/files/%22some+text%22/sharedlink
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "share": true
}
Returns

Shared file link