cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eliotcole
Helper V
Helper V

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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (88,577)