Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

POST API

imaran_669
8 - Asteroid

Hi Community, I have a process that downloads data from a GET API with basic auth and works great.

Now I want to use a POST API that I need to send a .csv. Is this possible with Alteryx?

I made this workflow, but I get in the DownloadData a (:message “Invalid File”) that I assume is that I am not sending the information as a .csv.

Can someone help me see what I am doing wrong?

Thanks!!!

 

invalid file.JPG

4 REPLIES 4
BrandonB
Alteryx
Alteryx

What API are you leveraging? It would be helpful if there was some documentation available so we can help guide you. 

imaran_669
8 - Asteroid

I cant post the details because its can only be accesed from the coporate enviroment. 

 

But its a regular Basic Auth API that needs to recieve a .csv file. The thing im not finding is where i can set to send the .csv as an attachment and not as raw data. 

 

Thanks! 

BrandonB
Alteryx
Alteryx

Do you have it working successfully in postman? Sometimes that is a good place to start and then you can see the resulting cURL code which is easy to translate into either Alteryx code or used in conjunction with a run command tool. Alternatively you could use a bit of Python in the Python tool. Depending on the API requirements you can probably get the download tool working as well, but without seeing the documentation it is tough to know what particular components are required to be sent in the request. 

imaran_669
8 - Asteroid

@BrandonBsorry the delay in the response I was having trouble to make it work in postman (same error) and I found out that it was because I was sending the file key empty. I put the name "file" in that field, and it worked on postman. But I can’t figure out to make it work in Alteryx. This is the Postman configuration that brings the "file queued" response. Can you help me out to figure out what I’m missing? 

 

Apipost.JPG

 

Labels
Top Solution Authors