Docker Engine API v1.27 - setting ENV in /service/create

I am migrating from using /containers/create to /service/create via the API.

The documentation does not appear to show how to set environment variables in the /service/create API - could someone show me how to do this please?