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:
"body": {
"status": 400,
"message": "{\"odata.error\":{\"code\":\"-1, System.Net.WebException\",\"message\":{\"lang\":\"en-US\",\"value\":\"The remote server returned an error: (400) Bad Request.\"}}}\r\nclientRequestId: [...]\r\nserviceRequestId: [...]",
"source": "https://[tenant].sharepoint.com/sites/[MyTeamSite]/_api/groupservice/SetGroupImage",
"errors": []
}