Update update_flags_archive for new get_obsid api