Get Started
Usage API
More information

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

Description

Creates a photo thumbnail by coordinates of the original image specified in the request.

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
Horizontal coordinate number 1234
y
sent in body
Vertical coordinate number 1234
width
sent in body
Thumbnail width number 1234
height
sent in body
Thumbnail 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

Thumbnail

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>