<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Enable Time Settings of Feature Service in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/829803#M3123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to enable to the "Time Settings" of a Feature Service with the Python API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2019 10:34:32 GMT</pubDate>
    <dc:creator>KarstenRank</dc:creator>
    <dc:date>2019-03-08T10:34:32Z</dc:date>
    <item>
      <title>Enable Time Settings of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/829803#M3123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to enable to the "Time Settings" of a Feature Service with the Python API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 10:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/829803#M3123</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2019-03-08T10:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Time Settings of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/829804#M3124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;first create a token&lt;/LI&gt;&lt;LI&gt;updateServiceDef&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;def updateServiceDef(token):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' use this to update feature service max record count '''&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateServiceDefURL = 'https://services2.arcgis.com/.../ArcGIS/rest/admin/services/.../FeatureServer/0/updateDefinition'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; params = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'updateDefinition': {"timeInfo" : {"startTimeField" : "DateTimeField1", "endTimeField" : "DateTimeField2"}},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'async': 'true',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'token': token,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'f':'json'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = requests.post(updateServiceDefURL, data=params, verify=True)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 21:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/829804#M3124</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2019-03-26T21:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Time Settings of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/1571531#M10990</link>
      <description>&lt;P&gt;You should be able to do this with manager.update_definition() as well&lt;/P&gt;&lt;LI-CODE lang="python"&gt;lyr = gis.content.get('{your Feature Layer item id}').layers[0]
lyr.manager.update_definition({ 
  "timeInfo": {
    "startTimeField": "{your Start date/time field}",
    "endTimeField": "{your End date/time field}"
  }
})&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-layer-.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-layer-.htm&lt;/A&gt;&amp;nbsp;- This reference has plenty of other examples for Service Definition updates you can make with this function.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 19:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enable-time-settings-of-feature-service/m-p/1571531#M10990</guid>
      <dc:creator>ThomasParisi</dc:creator>
      <dc:date>2024-12-27T19:46:56Z</dc:date>
    </item>
  </channel>
</rss>

