POST api/2.0/people/{userid}/photo
Uploads a photo of the user with the ID specified in the request.
Name |
Description |
Type |
Example |
userid
sent in url
|
User ID
|
string
|
some text
|
formCollection
sent in body
|
Image data
|
Microsoft.AspNetCore.Http.IFormCollection
|
|
POST api/2.0/people/%22some+text%22/photo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"formCollection": null
}
application/json
{
"status": 0,
"response": {
"Success": true,
"Message": "some text"
}
}
text/xml
<result>
<status>0</status>
<response>
<Success>True</Success>
<Message>some text</Message>
</response>
</result>