Fixes #7378 - fixed API lookup keys filters

- forced search to be successful when resource id is provided
- added API documentation for missing parameters
I don't think resource_name should be extracted here, just put it in the message so it's properly translated.