Added targeting of api endpoint to target command
[#58586012]