def new(self, name=None, stack='cedar'):

        payload = {}

        if name:
            payload['app[name]'] = name

        if stack:
            payload['app[stack]'] = stack

        r = self._h._http_resource(
            method='POST',
            resource=('apps',),
            data=payload
        )

        name = json.loads(r.content).get('name')
        return self._h.apps.get(name)
Invoked by the ModelAPIRequestHandler.put method prior to taking
dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py/App.new--crossover with--dataset/ETHPy150Open gmr/tinman/tinman/handlers/mixins.py/ModelAPIMixin.initialize_put