Validate request body for valid resource id format
PWS returns HTTP code 500 instead of 400 when input body (resource id(s)) is too large or empty. It's executing the operation without doing input validation.
This PR is to do input validation return a proper 400 HTTP code when validation fails.