def METHOD_NAME(version):
    """Add or update the version path to versions.json"""
    for ver in versions:
        if ver["version"] == version:
            ver["url"] = os.path.join(URL, version)
            break
    else:
        versions.append({
            "version": version,
            "display": version,
            "url": os.path.join(URL, version),
            "latest": False
        })