def METHOD_NAME(configfile, update):
    """Add or update ApiHarvestConfigs from file."""
    configs = yaml.load(configfile, Loader=yaml.FullLoader)
    for name, values in sorted(configs.items()):
        url = values.get('url', '')
        mimetype = values.get('mimetype', '')
        size = values.get('size', 100)
        comment = values.get('comment', '')
        click.echo(f'ApiHarvesterConfig: {name} {url} ', nl=False)
        msg = api_source(
            name=name,
            url=url,
            mimetype=mimetype,
            size=size,
            comment=comment,
            update=update
        )
        click.echo(msg)