I am glad to know that the existing feature helps you automate the test scenario.
Thank you for sharing more details on the test case. I will to my best to advise you and help you with that.
The API test must be part of a Web test and you can then add it to a test list. It is not possible to add an API test like it is in the test list. This means that you can pass some variables to that API test, as I suggested in my previous reply.
You can set your own variables in a coded step and the pass them to the API test step in the same test. You can set any variable like the baseURL, password and username. You can get some of those variables from the Settings, or read them from external file for example. Please check the sample code below, which sets the baseUrl from the settings to a new variable "urlBase".
I hope that the above suggestion will help you run the same set of tests against different environments by creating or changing some variables in a coded step.
Please do not hesitate to contact us again, if you need further assistance, or any questions arise.