Unable to set engineEnv in API call to /projects/<projectId>/machines


#1

In Rancher 1.6.23 I am unable to set engineEnv when creating a new machine/host via API call to /projects/<projectId>/machines. How can I do this?
It works if I create a new host in the UI.


#2

The UI is just a client-side API client. Anything it’s doing is done is through the same API you use, so you must just have something wrong. You can open the browser dev tools’ networking tab and see the exact request sent by the UI to compare against.