Trouble Accessing SnipeIT with Qualtrics Web Service Task | XM Community
Skip to main content

Just as the title states, I am having trouble accessing the SnipeIT API. What I believe to be the issue is that SnipeIT follows only a path to access the assets of an individual based on their id.
My WorkFlow:

  1. Authenticator (Google OAuth2.0) grabs the email field and turn that into embedded field 'Email'

  2. Under this authenticator, I then run a Web Service Task (WST) (GET request) with the base url (https://ucsdlibrary.snipe-it.io/api/v1/users), I plug in my search parameter as the embedded Email field and with the appropriate header. This returns the user's ID from SnipeIT as variable 'userID'

  3. *Here is my problem* Following this WST, I need to reach the path (https://ucsdlibrary.snipe-it.io/api/v1/users/{id}/assets).

I am not sure where/or if it's even possible for me to pass some parameter that takes 'userID' into the url for the GET request.
If anyone has any advice or could at least give me more info so I can research more that would be great and very much appreciated.
If any further info is required feel free to ask. I've include a picture and link to the SnipeIT API documentation.
QWS.pnghttps://snipe-it.readme.io/reference/usersidassets

Be the first to reply!

Leave a Reply