API query params optional?

Is there any way to make the API’s query parameters be active only under certain conditions?


This is an action that lists sale offers and there are various parameters I can use to filter the list… However the parameter external.id may not be blank as the list will come out empty (probably because all the offers have some ID there).

I know I could have another action with the same name with a condition set up to use the right action if $_GET.ean is not empty and I would do that if those were the only 2 parameters but sadly there’s a few more I’d like to use

If I’m not being clear enough, I’d like to be able to set it up in a similar way it’s possible query builder:

Community Page
Last updated: