Replace the `request` property with `resourcePath`