Update to work with api request object