Hello all,
I started messing with the Admin APIs, and found the /admin/v1/schedules produced the results I was looking for. I was able to run it through the gui and get results. I was hoping I could use this in a workflow though. I inserted the results URL into a text input tool, and attached a download tool, but I get the HTTP/1.1 401 Unauthorized error.
Is the process to run the API in the gui and then copy the Request URL to run it thru the download tool?
Thank you in advance.
Solved! Go to Solution.
Hey @superjesse ,
What Alteryx Server version are you in? I'm asking this question because the server APIs were recently updated.
Best,
Fernando Vizcaino
Thank you for the response. We are on 2021.2.2.45235. We are looking to upgrade in the next month or two though to 2022.1
Hey @superjesse ,
Take a look at this post. @patrick_digan develop an amazing macro to streamline the whole process: https://community.alteryx.com/t5/Engine-Works/Using-the-Alteryx-API-from-Alteryx/bc-p/335401
To get the keys needed to work with the macro: https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/How-to-Generate-a-new-API-Access-Key-...
Only so you are aware, the authentication method used for the gallery APIs is being replaced with a different one starting in 22.1. For the new one, I suggest using this: https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228
Best,
Fernando Vizcaino
Hi @superjesse ,
GUI API calls cannot be worked directly in the download tool. You need to enter the Request headers and payload details in the text input to make API calls using the download tool.
Example:
Open Admin Alteryx URL => Inspect Element or F12 => Network => Navigate to Jobs page in UI
Obtain all the request headers and pass them into the text input tool along with the URL
Select all the headers in the Download tool headers tab (Except Request URL)
Regards,
Ariharan.R
Thank you..The post from @patrick_digan had a workflow that I was able to utilize to run all the APIs and export them to a table format.