Additional changes for Api\Request.php