Hello,
I am trying to us the ArcGIS Rest API to add an attachment to a service. Attachments are enabled. My situation is that I have a Survey123 that when submitted has a web hook connected to Microsoft Power Automate. In Power Automate, I make a REST API call for Execute Task (Export Web Map Task). I parse the JSON to get the resulting URL that contains the image I'm after. I then make a GET http request for the image URL returned in the previous step. I finally make a POST request for the addAttachment method and pass the body of the GET request performed on the image as the attachment parameter. This results in a generic error that isn't helpful at all. Any idea what I am doing wrong?
Alternatively, I thought about using the ArcGIS API for Python and using the add attachment functionality there. This works great when pointing to a local file, but when I point to URL it errors asking for a file path. Any idea how I could use python to add an attachment form URL?
Thanks,
Nikholai