Get Started
Portal api methods
Help

POST api/2.0/people/{userid}/photo/thumbnails This function requires authentication

Description

Create photo thumbnails by coordinates of original image

Parameters
Name Description Type Example
userid
sent in url
User ID string some text
tmpFile
sent in body
Path to the temporary file string some text
x
sent in body
X number 1234
y
sent in body
Y number 1234
width
sent in body
Width number 1234
height
sent in body
Height number 1234
Example
POST api/2.0/people/some+text/photo/thumbnails
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "tmpFile": "some text",
  "x": 1234,
  "y": 1234,
  "width": 1234,
  "height": 1234
}
Returns

Example Response

application/json

{
  "status": 0,
  "response": {
    "original": "default_user_photo_size_1280-1280.png",
    "retina": "default_user_photo_size_360-360.png",
    "max": "default_user_photo_size_200-200.png",
    "big": "default_user_photo_size_82-82.png",
    "medium": "default_user_photo_size_48-48.png",
    "small": "default_user_photo_size_32-32.png"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <original>default_user_photo_size_1280-1280.png</original>
    <retina>default_user_photo_size_360-360.png</retina>
    <max>default_user_photo_size_200-200.png</max>
    <big>default_user_photo_size_82-82.png</big>
    <medium>default_user_photo_size_48-48.png</medium>
    <small>default_user_photo_size_32-32.png</small>
  </response>
</result>