TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

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

Description

Returns a new unsaved link object to the file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID string some text
isFolder
sent in url
Specifies if a link is to the shared folder or not Bool value true
Example
GET api/2.0/files/{fileid}/sharedlink/template
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "fileId": "some text",
  "isFolder": true
}
Returns

Shared link template