POST api/2.0/files/rooms This function requires authentication

Description

Creates a room in the "Rooms" section.

Parameters
Name Description Type Example
Title
sent in body
Room name string some text
RoomType
sent in body
Room type FillingFormsRoom = 1, EditingRoom = 2, ReviewRoom = 3, ReadOnlyRoom = 4, CustomRoom = 5, PublicRoom = 6 5
Private
sent in body
Private room or not Bool value true
Share
sent in body
Collection of sharing parameters Collection of ASC.Files.Core.ApiModels.FileShareParamss
collection
Notify
sent in body
Notifies users about the shared room or not Bool value true
SharingMessage
sent in body
Message to send when notifying about the shared room string some text
Quota
sent in body
Room quota number 1234
Example
POST api/2.0/files/rooms
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Title": "some text",
  "RoomType": "5",
  "Private": true,
  "Notify": true,
  "SharingMessage": "some text",
  "Quota": 1234
}
Returns

Room information

Example Response
{
  "status": 0,
  "response": {
    "ParentId": 1234,
    "FilesCount": 1234,
    "FoldersCount": 1234,
    "IsShareable": true,
    "IsFavorite": true,
    "New": 1234,
    "Mute": true,
    "Pinned": true,
    "RoomType": "5",
    "Private": true,
    "QuotaLimit": 1234,
    "IsCustomQuota": true,
    "UsedSpace": 1234
  }
}