GET api/2.0/files/{fileId}/sharedlink/template
Returns a new unsaved link object to the file with the ID specified in the request.
Name |
Description |
Type |
Example |
fileId
sent in body
|
File ID
|
string
|
some text
|
isFolder
sent in body
|
Specifies if a link is to the shared folder or not
|
Bool value
|
true
|
GET api/2.0/files/{fileid}/sharedlink/template
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"fileId": "some text",
"isFolder": true
}