code: function update(req, res, next) {
      for (var key in req.body) {
        req.body[key] = utils.toNative(req.body[key])
      }
      var resource = db(req.params.resource)
        .update(utils.toNative(req._internal.filters.id), req.body)
      if (resource) {
        res.jsonp(resource)
      } else {
        res.status(404).jsonp({})
      }
    }
docs: PUT /:resource/:id PATCH /:resource/:id