docs: function (req, res) {
          let sectionId = req.params.id;
          if (!(req.body.space || req.body.app || req.body.x || req.body.y || req.body.w || req.body.h)) {
              // An attempt to do something we don't understand
              log.error('Invalid Operation:', 'request:', JSON.stringify(req.body));
              Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid operation' }));
          } else if (Utils.isNullOrEmpty(server.state.get('sections[' + sectionId + ']'))) {
              log.error('Invalid Section Id:', sectionId);
              Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid section id' }));
          } else if (req.body.app && !req.body.app.url) {
              log.error('Invalid App Configuration', 'request:', JSON.stringify(req.body.app));
              Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid app configuration' }));
          } else if (req.body.space && !server.spaces[req.body.space]) {
              log.error('Invalid Space', 'request:', JSON.stringify(req.body));
              Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid space' }));
          } else if ((req.body.space || req.body.w !== undefined || req.body.h !== undefined) && (req.body.x === undefined || req.body.y === undefined)) {
              // specifically testing for undefined since '0' is a valid input.
              // x and y positions must be provided if the space, w or h has changed.
              log.error('Both x and y positions are required to change space, height or width', 'request:', JSON.stringify(req.body));
              Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid dimensions' }));
          } else if ((req.body.x !== undefined && req.body.y === undefined) || (req.body.y !== undefined && req.body.x === undefined)) {
              // specifically testing for undefined since '0' is a valid input.
              // x and y positions must be provided together
              log.error('Both x and y positions are required for a resize operation', 'request:', JSON.stringify(req.body));
              Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid dimensions' }));
          } else {
              _updateSectionById(sectionId, req.body.space, { x: req.body.x, y: req.body.y, w: req.body.w, h: req.body.h }, req.body.app);
              log.info('Successfully updated section:', sectionId);
              Utils.sendMessage(res, HttpStatus.OK, JSON.stringify({ id: parseInt(sectionId, 10) }));
          }
      }