POST api/2.0/files/rooms/{id}/logo This function requires authentication

Description

Creates a logo for a room with the ID specified in the request.

Parameters
Name Description Type Example
id
sent in url
Room ID number 1234
TmpFile
sent in body
The path to the temporary image file System.String
X
sent in body
The X coordinate of the rectangle starting point System.Int32
Y
sent in body
The Y coordinate of the rectangle starting point System.Int32
Width
sent in body
The rectangle width System.Int32
Height
sent in body
The rectangle height System.Int32
Example
POST api/2.0/files/rooms/1234/logo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "TmpFile": "some text",
  "X": 1234,
  "Y": 1234,
  "Width": 1234,
  "Height": 1234
}
Returns

Room information

Example Response

application/json

{
  "status": 0,
  "response": {
    "ParentId": 1234,
    "FilesCount": 1234,
    "FoldersCount": 1234,
    "New": 1234,
    "Mute": true,
    "Pinned": true,
    "Private": true
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <ParentId>1234</ParentId>
    <FilesCount>1234</FilesCount>
    <FoldersCount>1234</FoldersCount>
    <New>1234</New>
    <Mute>True</Mute>
    <Pinned>True</Pinned>
    <Private>True</Private>
  </response>
</result>