cancel
Showing results for 
Search instead for 
Did you mean: 

Calling REST APIs with Parameters

salesopsintegra
New Contributor II

I need to be able to call a REST endpoint that takes a UserId as a parameter. I’m curious how I can leverage snaplogic to loop over an undetermined list of userIds from one REST endpoint to call another endpoint passing the user id.
Is this even possible in Snaplogic?

1 REPLY 1

ptaylor
Employee
Employee

Sure. Use the JSON Splitter snap to split the output of the first REST Get into a set of documents, one per userId. Then configure the second REST Get with a query parameter whose value is an expression specifying the path of the userId in each input document.