No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Update and Crop a User Photo
This example crops an existing photo (a photo that has already been uploaded). You can also upload and crop a photo. To upload a new photo you must use a multipart/form-data request. See Uploading Binary Files. To use this example to update and crop a group photo, substitute /chatter/groups/groupId/photo.
- Resource
- /chatter/users/userId/photo
- HTTP method
- POST
- Request body
- Photo Input
- Request parameters
- cropSize, cropX, cropY, fileId
- Request body example
1{ "cropSize" : "240", 2 "cropX" : "20", 3 "cropY" : "20", 4 "fileId" : "069D00000001IOh" 5}- Request parameter example
1/services/data/v33.0/chatter/users 2/me/photo?cropSize=240&cropX=20&cropY=20&fileId=069D00000001IOh- Returns
- Photo