I would like to know if the following is possible using the Portal REST API -
I want to programatically update a filter on one of the layers (probably using Python) on my web map. 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. I want the filter on this layer to always be set to the current day. 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.
So I'm curious if it is possible to do this programatically with a recurring script. 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. Any thoughts?
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.