PUT api/2.0/files/{fileId}/setacelink
Sets the access status for the external link to the file with the ID specified in the request.
Name |
Description |
Type |
Example |
fileId
sent in url
|
File ID
|
`0
|
|
Share
sent in body
|
Sharing rights
|
ASC.Files.Core.Security.FileShare
|
|
PUT api/2.0/files/{fileid}/setacelink
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"Share": "ReadWrite"
}
Boolean value: true if the file is successfully shared