Newer Version Available

This content describes an older version of this product. View Latest

Update and Crop a Group 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, use a multipart/form-data request. See Uploading Binary Files.

Resource
/chatter/groups/groupId/photo
HTTP method
POST
Request body
Photo Input
Request body example
1{   "cropSize" : "240",
2    "cropX" : "20",
3    "cropY" : "20",
4    "fileId" : "069D00000001IOh"
5}
Request parameters
cropSize, cropX, cropY, fileId
Request parameter example
1/services/data/v53.0/chatter/groups/0F9300000008ORJ
2/photo?cropSize=240&cropX=20&cropY=20&fileId=069D00000001IOh
Returns
Photo