code: func (client *Client) UpdateApplication(app Application) (Application, Warnings, error) {
  	bodyBytes, err := json.Marshal(app)
  	if err != nil {
  		return Application{}, nil, err
  	}
  
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.PatchApplicationRequest,
  		Body:        bytes.NewReader(bodyBytes),
  		URIParams:   map[string]string{"app_guid": app.GUID},
  	})
  	if err != nil {
  		return Application{}, nil, err
  	}
  
  	var responseApp Application
  	response := cloudcontroller.Response{
  		DecodeJSONResponseInto: &responseApp,
  	}
  	err = client.connection.Make(request, &response)
  
  	return responseApp, response.Warnings, err
  }
docs: // UpdateApplication updates an application with the given settings.