POST odata/Users(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)/SoNET.UploadPicture

Uploads a profile picture for the User. Image is automatically resized.

Request Information

Request body formats

application/json, text/json

Sample:
    POST http://sampleserver.com/odata/Users(4d7b1f1e-3868-4c42-9c33-3875b5f6de12)/SoNET.UploadPicture HTTP/1.1    
    Authorization: Bearer [oauth token here]
    Accept: application/json
    Content-Type: multipart/form-data; boundary="4ae44119-ceb3-48b4-b788-cbd76d88e572"       
    --4ae44119-ceb3-48b4-b788-cbd76d88e572
    Content-Disposition: form-data; name=file; filename=profile0123.jpg;
    [image bytes here]

    Content-Type: multipart/form-data; boundary="4ae44119-ceb3-48b4-b788-cbd76d88e572"    

Response Information

Response body formats

HTTP/1.1 200 OK
{
   "@odata.context":"http://sampleserver.com/odata/$metadata#Users/$entity",
   "UserID":"4d7b1f1e-3868-4c42-9c33-3875b5f6de12",  
   "PictureThumbFilePath":"~/Photos/SampleSite/Profile/profile0123_k5rG_resized.jpg",
   "PictureFilePath":"~/Photos/SampleSite/Profile/profile0123_k5rG.jpg",
    [other User properties here]
}