Get Started
Portal api methods
Help

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

Description

Deletes the photo of the user with the ID specified in the request

Parameters
Name Description Type Example
userid
sent in url
User ID string some text
Example
DELETE api/2.0/people/some+text/photo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
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>