code: func (c *Client) ModifyAffiliation(request *ModifyAffiliationRequest) (*AffiliationResponse, error) {
  	ca, err := newCAClient(c.ctx, c.orgName)
  	if err != nil {
  		return nil, err
  	}
  
  	req := &mspapi.ModifyAffiliationRequest{
  		NewName: request.NewName,
  		AffiliationRequest: mspapi.AffiliationRequest{
  			Name:   request.Name,
  			Force:  request.Force,
  			CAName: request.CAName,
  		},
  	}
  
  	r, err := ca.ModifyAffiliation(req)
  	if err != nil {
  		return nil, err
  	}
  
  	resp := &AffiliationResponse{CAName: r.CAName, AffiliationInfo: AffiliationInfo{}}
  	err = fillAffiliationInfo(&resp.AffiliationInfo, r.Name, r.Affiliations, r.Identities)
  
  	return resp, err
  }
docs: // ModifyAffiliation renames an existing affiliation on the server