Implements the update doc API: /api/trackhub/:id (POST).
Tests for update doc API: /api/trackhub/:id (POST).