Hello guys, I’m making the following request:
"fileterContacts": {
"schema": {
"method": "GET",
"host": "<%= iparam.domainName %>.freshdesk.com",
"path": "/api/v2/contacts",
"headers": {
"Authorization": "Basic <%= encode(iparam.apiKey) %>",
"Content-Type": "application/json"
},
"query": {
"email": "<%= context.email %>",
"mobile": "<%= context.phone %>"
}
}
},
But my query is dynamic, I can pass only email or just phone, or both together, in this example it filters by passing phone as empty if I do not pass anything, which compromises the query, so I need to somehow solve this problem, example if the parameter is null or something like it should not be sent!
I don’t think it’s a good solution to create 3 requests that do the same thing just because of parameters of a query