@api.login_required(oauth_scopes=['teams:write'])
    @api.parameters(parameters.CreateTeamParameters())
    @api.response(schemas.DetailedTeamSchema())
    @api.response(code=http_exceptions.Conflict.code)
    def post(self, args):
        """
        Create a new team.
        """
        try:
            try:
                team = Team(**args)
            except __HOLE__ as exception:
                abort(code=http_exceptions.Conflict.code, message=str(exception))
            db.session.add(team)
            try:
                db.session.commit()
            except sqlalchemy.exc.IntegrityError:
                abort(code=http_exceptions.Conflict.code, message="Could not create a new team.")
        finally:
            db.session.rollback()
        return team
dataset/ETHPy150Open frol/flask-restplus-server-example/app/modules/teams/resources.py/Teams.post