Ask a Question

Posting a file to an API using Power Automate

Cyberturnip
New Member

Posting a file to an API using Power Automate

I can use Swagger to post a file to a folder in my system using swagger but I want to be able to do this in Power Automate

The curl response is 

curl -X 'POST' \  'https://siteURL/api/1/files/content?parentfolderid=43618' \  -H 'accept: application/json' \  -H 'Content-Type: multipart/form-data' \  -F 'file=@car.txt;type=text/plain' \  -F 'filename=Car'

How do I convert this to Power Automate? I know I need to use multipart form data, but I have no idea how to configure this and none of the "solutions" that I have seen posted online work.
I am tearing what little hair out trying to resolve this but I'm shooting in the dark - I am not a programmer. Merely an enthusiastic amateur
Thanks

 

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: