Sets an external or invitation link with the ID specified in the request.
Name | Description | Type | Example |
id
sent in url
|
Room ID | number | 1234 |
LinkId
sent in body
|
Link ID | System.Guid | |
Title
sent in body
|
Link name | System.String | |
Access
sent in body
|
Sharing rights | ASC.Files.Core.Security.FileShare | |
ExpirationDate
sent in body
|
Link expiration date | ASC.Api.Core.ApiDateTime | |
LinkType
sent in body
|
Link type | ASC.Files.Core.ApiModels.ResponseDto.LinkType | |
Password
sent in body
|
Link password | System.String | |
DenyDownload
sent in body
|
Specifies whether downloading a file from a link is disabled or not | System.Boolean |
PUT api/2.0/files/rooms/1234/links Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "LinkId": "9924256A-739C-462b-AF15-E652A3B1B6EB", "Title": "some text", "Access": "ReadWrite", "ExpirationDate": "2008-04-10T06-30-00.000Z", "Password": "some text", "DenyDownload": true }
Room security information
{ "status": 0, "response": { "Access": "ReadWrite", "IsLocked": true, "IsOwner": true, "CanEditAccess": true } }