PUT api/2.0/files/rooms/{id}/links
Sets an external link to invite the users to a room with the ID specified in the request.
Name |
Description |
Type |
Example |
id
sent in url
|
Room ID
|
`0
|
|
LinkId
sent in body
|
Link ID
|
System.Guid
|
|
Title
sent in body
|
External link name
|
System.String
|
|
Access
sent in body
|
Sharing rights
|
ASC.Files.Core.Security.FileShare
|
|
PUT api/2.0/files/rooms/{id}/links
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"LinkId": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"Title": "some text",
"Access": "ReadWrite"
}
Security information of room files
application/json
{
"status": 0,
"response": [
{
"Access": "ReadWrite",
"IsLocked": true,
"IsOwner": true,
"CanEditAccess": true
}
]
}
text/xml
<result>
<status>0</status>
<response>
<Access>ReadWrite</Access>
<IsLocked>True</IsLocked>
<IsOwner>True</IsOwner>
<CanEditAccess>True</CanEditAccess>
</response>
</result>