code: func (s *VersionService) Update(version *Version) (*Version, *Response, error) {
  	apiEndpoint := fmt.Sprintf("rest/api/2/version/%v", version.ID)
  	req, err := s.client.NewRequest("PUT", apiEndpoint, version)
  	if err != nil {
  		return nil, nil, err
  	}
  	resp, err := s.client.Do(req, nil)
  	if err != nil {
  		jerr := NewJiraError(resp, err)
  		return nil, resp, jerr
  	}
  
  	// This is just to follow the rest of the API's convention of returning a version.
  	// Returning the same pointer here is pointless, so we return a copy instead.
  	ret := *version
  	return &ret, resp, nil
  }
docs: // Update updates a version from a JSON representation.
  //
  // JIRA API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-version-id-put