Alteryx Designer Desktop Discussions

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

How to use Alteryx for an API POST

CanadaKing
6 - Meteoroid

Hi,

 

How could I use Alteryx in an API POST where I add a new line(s) to a table.

 

API request a JSON script that look like attached file

 

Thanks

4 REPLIES 4
Luke_C
17 - Castor

Hi @CanadaKing 

 

Assuming you have columns for each field in the JSON, you would use a JSON Build tool to create the payload, and then use a download tool to create the POST request. How familiar are you with APIs? Any Sample data you can provide?

CanadaKing
6 - Meteoroid

Hi @Luke_C ,

 

I have a very little experience with Alteryx API, you may use attached file to the main post as data examples ....

 

Thanks

gabrielvilella
14 - Magnetar

The file you attached is the JSON. Assuming you know how to build a JSON, you just need to use this as the payload when setting up the Download tool.

gabrielvilella_0-1657731881343.png

 

Luke_C
17 - Castor

Hi @CanadaKing 

 

Here's how you can build the JSON if you're starting with raw data fields. Without having the API documentation it will be hard to give you the exact solution, but this should get you started. 

 

Luke_C_0-1657735458523.png

 

 

Labels