In my API call, I am trying to set a Parameter to only give me back data WITHOUT a category.
So, I put in the correct Parameter and leave it blank… Mark “Allow blank”.
Data response:
Ugh, this is wrong… It gives me back ALL data, blank categories and data with categories!
My first thought was it’s because I set “Optional”. So the first thing I did was remove “Optional”… Thinking I want to force it to accept the empty category parameter. In other words, I ONLY want data returned to me without a category (so only 1 record).
So, I remove “Optional” and reinitialize…
Nope. Now it won’t initialize. It says it’s mandatory. But that’s what I want! I want it to be empty.
Now, here’s the kicker… if I “Manually enter API response”, and manually type in the category to blank… it works.
Great! So I can force my API to accept an empty category and only give me back data with an empty category.
The problem is once I go to make the call on my page, even after I “Manually enter API response”, the data goes back to showing me ALL data, including ones that have category.
@nick.carroll How can I force an empty value to be sent in the Parameter field like what I did in the “Manually enter API response”?