How to pass path dynamically in requests.json?

Hi Team,

can we configure dynamic path in requests.json?

“fetchFieldApi”: {
“schema”: {
“protocol”: “https”,
“method”: “GET”,
“host”: “virat.ngrok.io”,
“path”: “<%= context.apiUri %>”,
“headers”: {
“Authorization”: “Bearer <%= iparam.freshdesk_api_key %>”,
“Content-Type”: “application/json”
}
},
“options”: {
“isOAuth”: true,
“maxAttempts”: 5
}
},

Hi @Sathish_J,

Yes, the path supports the context variable.
Find all the variables’ limitations in the documentation here - Freshworks Developer Docs | Use request method to place secure HTTP calls

Thank you @Raviraj
It is working

1 Like

Thanks Ravi,

I was migrating my app from v2.2 to v2.3 while doing that i was getting 401 error while making api call to freshdesk

This is my iparams file

This is my request template

This is the error i am getting while making api call to freshdesk

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.