Update and Crop a Group Photo

Update and crop a Chatter 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
{   "cropSize" : "240",
    "cropX" : "20",
    "cropY" : "20",
    "fileId" : "069D00000001IOh"
}
Request parameters
cropSize, cropX, cropY, fileId
Request parameter example
/services/data/v64.0/chatter/groups/0F9300000008ORJ
/photo?cropSize=240&cropX=20&cropY=20&fileId=069D00000001IOh
Returns
Photo