Set env when remixing from API

You can set the env values programmatically: See Programmatically set env file? Per-student setup

However I was unable to remix my project via the API – received an error message. (See the other thread.)