List items/attributes query parameters

In the API documentation:

  1. The “q” parameter is labeled as optional, but when i tried with the q parameter empty it gives me 422 error asking me to fill it.
  2. What is the “expand” parameter and why does it need to be filled when it’s labeled optional?

Thank you