Pass resource type through from the request as well