<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Something like this works for me:<div class=""><br class=""></div><div class="">/search type[]=resource type[]=archival_object page=1 filter={"query":{"comparator":"greater_than","field":"system_mtime","value":"2019-10-02","jsonmodel_type":"date_field_query"}}<br class=""><div><br class=""></div><div><br class=""></div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 8, 2019, at 10:24 AM, Seth Shaw <<a href="mailto:seth.shaw@unlv.edu" class="">seth.shaw@unlv.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">To do this you need to use the advanced query parameter which, unfortunately, is not well documented. There are a few email threads that describe using the advanced search though:<div class=""><br class=""></div><div class=""><a href="http://lyralists.lyrasis.org/mailman/htdig/archivesspace_users_group/2015-June/001734.html" class="">http://lyralists.lyrasis.org/mailman/htdig/archivesspace_users_group/2015-June/001734.html</a></div><div class=""><div class=""><br class=""></div><div class="">I've formulated queries like you describe before (I'll have to dig through my notes to see if I can find it again); but the result set was consistently giving me back duplicate results for some unknown reason; so I stopped using it. </div></div><div class=""><br class=""></div><div class="">Ideally, we would be able to add a 'modified_since' parameter to each entity's endpoint to get the most recent set. The capability exists in the code, but hasn't been exposed to the REST end-point. I've submitted a ticket that will hopefully lead to this being resolved: <a href="https://archivesspace.atlassian.net/browse/ANW-962?filter=-2" class="">https://archivesspace.atlassian.net/browse/ANW-962?filter=-2</a>.</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 8, 2019 at 7:07 AM Steve Mattison <<a href="mailto:smattiso@nd.edu" class="">smattiso@nd.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><a href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=archivesspace_users_group@lyralists.lyrasis.org" style="font-family: Times; font-size: inherit;" target="_blank" class=""></a><div class="">Community,</div><div class=""><br class=""></div><div class="">I'm new to using ArchivesSpace, and new to using the AS API. I need to use the API to search within a given repository to find records that have been modified after a particular time (e.g. modified within the last 48 hours). (We then want to export metadata related to those resources or archival_objects for a project we're working on.)</div><div class=""><br class=""></div><div class="">I have found the documentation for <a href="http://archivesspace.github.io/archivesspace/api/?shell#search-this-repository" target="_blank" class="">search-this-repository</a>, but don't know how to formulate a query to find all resources and/or archival_objects where the system_mtime is after a particular time. I would be fine with performing two searches, one for resources and one for archival_objects, if that is required.</div><div class=""><br class=""></div><div class="">Any help with the syntax for the query would be much appreciated.</div><div class=""><br class=""></div><div class="">Thanks for your help.</div><div class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><b class=""><font face="arial, sans-serif" class="">Steve Mattison</font></b><div class=""><i class=""><font face="arial, sans-serif" class="">Lead Software Engineer, Digital Library Technologies</font></i></div><div class=""><i class=""><font face="arial, sans-serif" class="">Hesburgh Libraries</font></i></div><div class=""><i class=""><font face="arial, sans-serif" class=""><br class=""></font></i><div class=""><div class=""><b class=""><font face="arial, sans-serif" class="">University of Notre Dame</font></b></div><div class=""><font face="arial, sans-serif" class="">271 Hesburgh Library</font></div><div class=""><font face="arial, sans-serif" class="">Notre Dame, IN 46556-5629</font></div><div class=""><font face="arial, sans-serif" class=""><b class="">o:</b> 574-631-8559</font></div><div class=""><font face="arial, sans-serif" class=""><b class="">e: </b><a href="mailto:steve.mattison@nd.edu" style="color:rgb(17,85,204)" target="_blank" class="">steve.mattison@nd.edu</a></font></div></div></div></div><div class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class=""><img src="https://docs.google.com/uc?export=download&id=1eLUXKKJMijoIFzQtpJutmM1uLHON9ZDt&revid=0B-gl36FdlSuTV2ZPM1NBek5HamNiOWN1UllhT3d2VWtCU3hjPQ" class=""></font></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br class="">
</blockquote></div>
!DSPAM:5dc588a9250937848916637!
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""><br class=""><br class="">!DSPAM:5dc588a9250937848916637!<br class=""></div></blockquote></div><br class=""></div></body></html>