def METHOD_NAME():
    game_id = json.loads(request.data)['game_id']
    name = json.loads(request.data)['name']
    if len(name) > 2 and len(name) < 40 and not api.save_game_exists(name):
        api.save_game(game_id, name)
        return json.dumps("Game was successfully saved")
    else:
        raise Exception("Cannot save this game")