static async apiUpdate (req, res, next) {
    if (req.user.isDemoMode()) {
      return res.send({ success: false, text: 'Sorry, in demo mode cannot change link groups.' });
    }

    const olinkGroup = await Db.getLinkGroup(req.params.id);
    if (!olinkGroup) {
      return res.send({ success: false, text: 'LinkGroup not found' });
    }

    const linkGroup = req.body;

    const { lg, msg } = LinkGroup.verifyLinkGroup(linkGroup);
    if (msg) {
      return res.send({ success: false, text: msg });
    }

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

    try {
      const results = await Db.putLinkGroup(req.params.id, lg);
      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/linkGroup/:id

Updates a link group
@name /linkGroup/:id
@param {LinkGroup} linkGroup - The link group 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