static async apiUpdate (req, res, next) {
    const dbView = await Db.getView(req.params.id);
    if (!dbView) {
      return res.send({ success: false, text: 'View not found' });
    }

    const receivedView = req.body;

    const { view, msg } = View.verifyView(receivedView);
    if (msg) {
      return res.send({ success: false, text: msg });
    }

    // sets the owner if it has changed
    if (!await User.setOwner(req, res, view, dbView, 'creator')) {
      return;
    }

    try {
      const results = await Db.putView(req.params.id, view);
      if (!results) {
        return res.send({ success: false, text: 'ES Error' });
      }
      return res.send({ success: true, text: 'Success' });
    } catch (err) {
      return res.send({ success: false, text: err.toString() });
    }
  }
PUT - /api/view/:id

Updates a view
@name /view/:id
@param {Cont3xtView} views - The view to update
@returns {boolean} success - True if the request was successful, false otherwise
@returns {string} text - The success/error message to (optionally) display to the user