set api root environment variable