cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eliotcole
Impactful Individual
Impactful Individual

Upload application/octet-stream Data To An HTTP Endpoint via a JSON POST

Hi

 

I have an API interaction that is receiving an application/octet-stream that provides a URL for said data.

 

I would like to now POST that data somewhere, how do I achieve that with the HTTP connector in Power Automate?

 

In my example I'm using DropBox's API, but this could be any API.

 

I have requested a file using their Temporary Link request, and I am now wanting to uploading it to DropBox (which, again, could be anywhere) and have been given an upload slot using their Temporary Upload Link request.

 

All I now need to do is send the data on the provided URL to the URL that they have given me. How do I post data using Power Automate?

....

I might have a lead in an unrelated StartPage search, if it pans out, I'll post the answer here.

EDIT - It wasn't what I thought ... I tried this in the body and it just created a file with that text in the destination. Grah

 

 

{
  "content": "https://content.dropboxapi.com/apitl/1/OBFUSCATED1-AA-111-OBFUSC_ATED2-OBFUSCATED3-OBFUSCATED4-bbb-OBFUSCATED5-OBFUSCATED6"
}

 

 

EDIT 2 - Do I need to fully form the JSON message in the body section?

 

So, for example, I have a URI that is bespoke each time, but here's a made up example:

 

https://content.dropboxapi.com/apitul/1/MadEUpURi228xJJJ

 

I've got the header for Content-Type set as:

 

application/octet-stream

 

 

I just don't know how I push the data from the URL previously fake listed, so now I'm wondering if I need to mess with the JSON itself and create it from scratch. There's a few posts about creating it and putting the Content-Type in the Body with a dollar symbol ... Is that the direction?


Should I be doing something with:

data-binary @ 
0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,786)