code: func (client *Client) UpdateRecord(ctx context.Context, name string, rec UpdateDNSRecord) (*DNSRecord, error) {
  	body, err := json.Marshal(UpdateDNSRecordResponse{
  		Record: rec,
  	})
  	if err != nil {
  		return nil, err
  	}
  
  	id := strconv.FormatInt(rec.ID, 10)
  	resp, err := client.dnsRequest(ctx, "/v1/domains/"+name+"/records/"+id, nil, string(body), "PUT")
  	if err != nil {
  		return nil, err
  	}
  
  	var r DNSRecordResponse
  	if err = json.Unmarshal(resp, &r); err != nil {
  		return nil, err
  	}
  
  	return &(r.Record), nil
  }
docs: // UpdateRecord updates a DNS record