Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

POST API request for file upload

sreejithmp
8 - Asteroid

Hi Data Folks,

 

Am using an api for uploading a file and it is working fine in postman not sure how can we achieve same in Alteryx using download tool. Could someone helps here. Below are the details 

In the body i have 2 parameters form_data which is a json object for payload and attachment which is the file to be uploaded. 

 

Headers contains: Content-Type :multipart/form-data

                               Cookie: Cookie

 post.png

 

2 REPLIES 2
BrandonB
Alteryx
Alteryx

Hi @sreejithmp 

 

You will likely need to use a Blob input tool pointed at the file location and then subsequently base64 encode it. You can see an example here: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/API-Calls-How-to-make-POST-cal... 

 

From what I can see in your postman configuration you may not need the blob convert tool and can get rid of the base64 encode step. 

NewToAlteryx2024
5 - Atom

Hi, I have a similar use case, Where you able to upload the file through the Rest API from Alteryx?

Labels