def get_version_without_patch(version):
    """
    Return the version of Kili API removing the patch version

    Parameters
    ----------
    - version
    """
    return '.'.join(version.split('.')[:-1])