code: function (viewName, viewConfig, customParams, callback) {
        [viewName, viewConfig, customParams, callback] = doArgs(arguments, ['string', 'object', ['object', {}], 'function']);
  
        viewConfig.json = JSON.stringify(viewConfig);
  
        const self = this;
  
        doRequest({
          method: 'POST',
          urlPattern: [VIEW_CONFIG, viewName],
          request: {
            form: viewConfig
            // headers: {'content-type': 'application/x-www-form-urlencoded'},
          },
          noparse: true
        }, customParams, function (error, data) {
          if (error) {
            callback(error, data);
            return;
          }
          self.view_info(viewName, customParams, callback);
        });
      }
docs: Update a view based on a viewConfig object
  
  @param {string} viewName
  @param {object} viewConfig
  @param {object|undefined} customParams is optional
  @param {function} callback