Struggling with SharePoint HTTP Request: _api/groupservice/SetGroupImage via Flow/Logic. This request succeeds when run via an spfx site extension (i.e. https://github.com/Puzzlepart/spfx-solutions/blob/master/Pzl.Ext.GroupLogo/src/extensions/groupLogo/GroupLogoApplicationCustomizer.ts#L101).
Task: Send an HTTP request to SharePoint
Site Address: https://[tenant].sharepoint.com/sites/[MyTeamSite]
Method: POST
Uri: _api/groupservice/SetGroupImage
Body: [File Content retrieved via 'Get file content using path' task] (looks like "�PNG\r\n\u001a\n\u0000\u0000[...]")
Headers: {
"Content-Type": "image/png",
"Accept": "application/json;odata=nometadata"
}
I'm using a connection user which is an o365 group owner for the group.
Outputs:
@JohnAageAnderse Worth a shot. No change when I tried with a jpg image and image/jpeg content type unfortunately.
Hello @deanbot88
When you ran it with the spfx site extension, did you use the same image?
I just wonder, as the spfx site extension states that it accepts JPEG images. No mention of PNG. The API could have that limit - so have you tried with a JPEG image instead?
Kind regards, John
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492