Please change the above line to:
When I send a POST request to "/domains/api<random>/applications" with the following:name=app&cartridge=php-#{php_version}"