<?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 Programatically Update Web Map using Portal API? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651594#M3178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know if the following is possible using the Portal REST API - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to programatically update a filter on one of the layers (probably using Python) on my web map.&amp;nbsp; I have a web map in Portal for ArcGIS 10.3 that contains a layer (which itself is hosted on our ArcGIS for Server) with a time field.&amp;nbsp; I want the filter on this layer to always be set to the current day.&amp;nbsp; However, I can't configure that in the web map itself, you can only specify a specific date or date range, but not specify 'always today' or 'always the most recent week' - I would have to edit the web map manually each day to achieve this effect.&amp;nbsp; &lt;/P&gt;&lt;P&gt;So I'm curious if it is possible to do this programatically with a recurring script.&amp;nbsp; I'm pretty familiar with the Server API, but not so much with ArcGIS Online / Portal API, and couldn't find anything useful in my quick research.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other option would to just host another service in ArcGIS for server (or a table view in my geodatabase), but would prefer to minimize the number of services and just programatically change the filter itself.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 21:01:28 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2015-09-17T21:01:28Z</dc:date>
    <item>
      <title>Programatically Update Web Map using Portal API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651594#M3178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know if the following is possible using the Portal REST API - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to programatically update a filter on one of the layers (probably using Python) on my web map.&amp;nbsp; I have a web map in Portal for ArcGIS 10.3 that contains a layer (which itself is hosted on our ArcGIS for Server) with a time field.&amp;nbsp; I want the filter on this layer to always be set to the current day.&amp;nbsp; However, I can't configure that in the web map itself, you can only specify a specific date or date range, but not specify 'always today' or 'always the most recent week' - I would have to edit the web map manually each day to achieve this effect.&amp;nbsp; &lt;/P&gt;&lt;P&gt;So I'm curious if it is possible to do this programatically with a recurring script.&amp;nbsp; I'm pretty familiar with the Server API, but not so much with ArcGIS Online / Portal API, and couldn't find anything useful in my quick research.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other option would to just host another service in ArcGIS for server (or a table view in my geodatabase), but would prefer to minimize the number of services and just programatically change the filter itself.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 21:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651594#M3178</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2015-09-17T21:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically Update Web Map using Portal API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651595#M3179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jay, did you get any further on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 08:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651595#M3179</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2017-03-28T08:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically Update Web Map using Portal API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651596#M3180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I was able to use ArcGIS Online Assistant to set a more granular definitionExpression not available through the Portal UI. &amp;nbsp;It took SQL, something like&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #718c00;"&gt;dateField &amp;gt;= CURRENT_DATE - 4
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651596#M3180</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2021-12-12T03:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically Update Web Map using Portal API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651597#M3181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jay!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 07:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/programatically-update-web-map-using-portal-api/m-p/651597#M3181</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2017-03-29T07:05:34Z</dc:date>
    </item>
  </channel>
</rss>

