Fixes #7378 - fixed API lookup keys filters

- forced search to be successful when resource id is provided
- added API documentation for missing parameters
Makes sense, fixed. @ekarlso I also fixed the error format to match API conventions.