code: func (n *NetworkServerAPI) UpdateRoutingProfile(ctx context.Context, req *ns.UpdateRoutingProfileRequest) (*empty.Empty, error) {
  	if req.RoutingProfile == nil {
  		return nil, grpc.Errorf(codes.InvalidArgument, "routing_profile must not be nil")
  	}
  
  	var rpID uuid.UUID
  	copy(rpID[:], req.RoutingProfile.Id)
  
  	rp, err := storage.GetRoutingProfile(storage.DB(), rpID)
  	if err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	rp.ASID = req.RoutingProfile.AsId
  	rp.CACert = req.RoutingProfile.CaCert
  	rp.TLSCert = req.RoutingProfile.TlsCert
  
  	if req.RoutingProfile.TlsKey != "" {
  		rp.TLSKey = req.RoutingProfile.TlsKey
  	}
  
  	if rp.TLSCert == "" {
  		rp.TLSKey = ""
  	}
  
  	if err := storage.UpdateRoutingProfile(storage.DB(), &rp); err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	return &empty.Empty{}, nil
  }
docs: // UpdateRoutingProfile updates the given routing-profile.