Use ZOWE Endevor plugin to list elements, the environment name has the leading pound sign '#'
$ zowe endevor list elements "SAMPLE" -i IBM4 --env "#T1A" --sn 2 --sys NUEF --sub NUEF --typ BPGCOB
Rest API failure with HTTP(S) status 400
HTTP(S) error status "400" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.
Base Path: EndevorService/rest
This issue is related to HTTP request string encoding. It removes everything after pound sign, and cause the Invalid request - HTTP(s) 400 error.
EWS0745E message found in JSON response - which means that there is a problem with request validation. that's old WS message. request validation logic was changed in July 2019 and before this update only A-Z,0-9 characters are allowed for environment name.
Release : 18.1
Component : CA Endevor Software Change Manager
Update Endevor Web Services to the latest maintenance level.
Intsall newer version of Endevor Zowe Plugin 5.7.3
zowe plugins install broadcom-endevor-for-zowe-cli-5.7.3.tgz