code: def create_revision(cls, id, revision, raw, api=None):
          
  
          api = api if api else cls._API
          extra = {'resource': cls.__name__, 'query': {
              'id': id,
              'data': raw
          }}
          logger.info('Creating app revision', extra=extra)
          app = api.post(url=cls._URL['create_revision'].format(
              id=id, revision=revision), data=raw).json()
          app_wrapper = api.get(
              url=cls._URL['get'].format(id=app['sbg:id'])).json()
          return App(api=api, **app_wrapper)
docs: Create a new app revision.
          :param id:  App identifier.
          :param revision: App revision.
          :param raw: Raw cwl object.
          :param api: Api instance.
          :return: App object.