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 Collection of ASC.Files.Core.ApiModels.RequestDto.RoomInvitations
collection
Notify
sent in body
Notifies users about the shared room or not Bool value true
Message
sent in body
Message to send when notifying about the shared room string some text
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"
  }
}