code: func (e *EnvironmentService) Put(environment *Environment) (data *Environment, err error) {
  	path := fmt.Sprintf("environments/%s", environment.Name)
  	body, err := JSONReader(environment)
  	if err != nil {
  		return
  	}
  
  	err = e.client.magicRequestDecoder("PUT", path, body, &data)
  	return
  }
docs: // Write an environment to the Chef server.
  //
  // Chef API docs: https://docs.chef.io/api_chef_server.html#environments-name