Get Started
Portal api methods
Help

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

Description

Updates the specified user photo with the pathname

Parameters
Name Description Type Example
userid
sent in url
User ID string some text
files
sent in body
Avatar photo url string some text
Example
PUT api/2.0/people/some+text/photo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "files": "some text"
}
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>