Hi there,
is it possible to enable to the "Time Settings" of a Feature Service with the Python API?
Thanks for your help
Karsten
Solved! Go to Solution.
Find the solution:
def updateServiceDef(token):
''' use this to update feature service max record count '''
updateServiceDefURL = 'https://services2.arcgis.com/.../ArcGIS/rest/admin/services/.../FeatureServer/0/updateDefinition'
params = {
'updateDefinition': {"timeInfo" : {"startTimeField" : "DateTimeField1", "endTimeField" : "DateTimeField2"}},
'async': 'true',
'token': token,
'f':'json'
}
response = requests.post(updateServiceDefURL, data=params, verify=True)
Find the solution:
def updateServiceDef(token):
''' use this to update feature service max record count '''
updateServiceDefURL = 'https://services2.arcgis.com/.../ArcGIS/rest/admin/services/.../FeatureServer/0/updateDefinition'
params = {
'updateDefinition': {"timeInfo" : {"startTimeField" : "DateTimeField1", "endTimeField" : "DateTimeField2"}},
'async': 'true',
'token': token,
'f':'json'
}
response = requests.post(updateServiceDefURL, data=params, verify=True)