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

Description

Sets the access status for the external link to the file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID number 1234
Share
sent in body
Sharing rights ASC.Files.Core.Security.FileShare
Example
PUT api/2.0/files/1234/setacelink
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Share": "ReadWrite"
}
Returns

Boolean value: true if the file is successfully shared