code: func (h *ViewHandler) handlePatchView(w http.ResponseWriter, r *http.Request) {
  	ctx := r.Context()
  
  	req, pe := decodePatchViewRequest(ctx, r)
  	if pe != nil {
  		EncodeError(ctx, pe, w)
  		return
  	}
  	view, err := h.ViewService.UpdateView(ctx, req.ViewID, req.Upd)
  	if err != nil {
  		EncodeError(ctx, err, w)
  		return
  	}
  
  	if err := encodeResponse(ctx, w, http.StatusOK, newViewResponse(view)); err != nil {
  		logEncodingError(h.Logger, r, err)
  		return
  	}
  }
docs: // handlePatchView updates a view.