cancel
Showing results for 
Search instead for 
Did you mean: 

How can I reference a path parameter in an API recipe?

jmcvicker
Deputy Chef II
Deputy Chef II

I'm building an API endpoint and have created a path with a parameter to get records related to a specific ID. If I skip all steps in the recipe and test it, I can see that the parameter is passed in. However, when I edit my recipe, there is no data pill for the path parameter. I can't figure out how to reference that path parameter.

 

Jen McVicker
CSP-SM, CSP-PO, SAFe 5 SPC, ICA-AC, ICA-ATF, Automation Pro II
1 REPLY 1

shivakumara
Executive Chef I
Executive Chef I

Hi @jmcvicker ,

When you set up API end point (refer to below end point) 
end point:  https://apim.workato.com/poc/employee/{id}
Testing:  when you hit the end point, you can see the parameter in the response of an API end point.
Solution: Add the logger or variable, map the parameter object respectively in formula mode.
API_1.jpgAPI_2.jpg