PUT api/2.0/files/rooms/{id}/share This function requires authentication

Description

Sets the access rights to a room with the ID specified in the request.

Parameters
Name Description Type Example
id
sent in url
Room ID number 1234
Invitations
sent in body
Collection of invitation parameters System.Collections.Generic.IEnumerable{ASC.Files.Core.ApiModels.RequestDto.RoomInvitation}
Notify
sent in body
Notifies users about the shared room or not System.Boolean
Message
sent in body
Message to send when notifying about the shared room System.String
Example
PUT api/2.0/files/rooms/1234/share
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Notify": true,
  "Message": "some text"
}
Returns

Room security information

Example Response
{
  "status": 0,
  "response": {
    "Warning": "some text"
  }
}