Hello all,
i wanto to use a Flow to upload a file via REST.
when sending the corresponding command as cURL it works fine.
However, when importing the cURL into Postman (which is my blueprint for the HTTP connector) and trying from there, it fails with "unsupported media type".
I worked the last 3 days through all results Google shows me when searching for this or related error.
p.s.
cURL command:
curl -v -u <user:pass> -X POST "https://<url>/service/rest/v1/components?repository=<name>" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "maven2.groupId=1" -F "maven2.artifactId=1" -F "maven2.version=1" -F "maven2.asset1=@D:<path>\<file>;type=application/pdf" -F "maven2.asset1.extension=pdf"
(yes, its a Maven2 Repo @ Sonatype Nexus)
--> this works fine
However, i'm unable to format the HTTP connector in a way to make it work also via PowerAutomate
Ideas ?