Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Admin Scheduler API

superjesse
8 - Asteroid

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.

 

 

 



 

5 REPLIES 5
fmvizcaino
17 - Castor
17 - Castor

Hey @superjesse ,

 

What Alteryx Server version are you in? I'm asking this question because the server APIs were recently updated.

 

Best,

Fernando Vizcaino

superjesse
8 - Asteroid

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

fmvizcaino
17 - Castor
17 - Castor

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

 

 

Ariharan
11 - Bolide

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

Ariharan_0-1659260206699.png

Obtain all the request headers and pass them into the text input tool along with the URL

 

Ariharan_1-1659260346637.png

Select all the headers in the Download tool headers tab (Except Request URL)

Ariharan_2-1659260413907.png

 

Regards, 

Ariharan.R

superjesse
8 - Asteroid

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.