Gallery API Workflow Download 401
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am using the Gallery API to download and backup workflows from our Gallery. The workflow is set up to run every week and download any workflows that have been updated that week. I use:
https://alteryx.ryder.com/gallery/api/admin/v1/workflows/
to find my workflow IDs and:
https://alteryx.ryder.com/gallery/api/admin/v1/"+[id]+"/package/
to download the workflows I want.
The first time I run this workflow I want to run it for all workflows in the gallery which is 5644 workflows. Half of them download and half of them return HTTP/1.1 401 Unauthorized. I’m trying to figure out a pattern but so far I have not been able to narrow it down to a specific user or subscription.
Does anyone know what could be causing my 401 error?
Solved! Go to Solution.
- Labels:
- API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I'm using Server and Designer 2021.3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It looks like there might be some sort of record limit. When I run 500 records they all have 200 status but when I send 501 I get at least one 401 error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @MattBenj
By far the easiest way to use the server API is to use the macro that @jarrod / @JarrodT built to make this easier
Server API tool - Alteryx Community
He may also be able to offer you suggestions on how to use the limit / offset params to deal with record limits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@MattBenj Would you mind sharing the workflow you created? I need to to do the same thing with our old 2021.4 server.