diff --git a/lib/router.js b/lib/router.js
index <HASH>..<HASH> 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -396,6 +396,7 @@ function route(name, model) {
    * Patch a resource.
    */
   express.patch(individualRoute, function(req, res) {
+    var id = req.params.id;
 
     // header error handling
     if(!mimeCheck(req.get('content-type'))) {
set id in patch for individualRoute