I'm stuck. I am trying to overwrite an existing csv file on a survey I published but it's not working. I have no errors. I run the script but the csv file doesn't change on the media folder on AGOL when I redownload the published form in survey123 connect. What am I doing wrong?
import arcgis
from arcgis.gis import GIS
import tempfile
import zipfile
import shutil
import os
# Script Parameteres
portalURL = r'https://egas.maps.arcgis.com/'
username = '***'
password = '***'
itemID = '***'
updated_files = ['Join_Features_to_Monitoring_Routes_v411_0.csv']
source_loc = r'C:/Users/jnmiller/Downloads/'
download_folder = r'C:/Users/jnmiller/Downloads/'
#----------------------------------------------------------
# Connect to GIS
gis = GIS(portalURL, username, password, verify_cert=False)
#------------------------------------------------
survey_manager = arcgis.apps.survey123.SurveyManager(gis)
surveyId = survey_manager.get(itemID)
surveyProp = surveyId.properties
print(surveyProp)