<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks, Brian and also thanks to Kevin Clair for this tip. It’s very helpful and I’m currently exploring what kind of results we get from it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Alan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p> </p>
<div style="font-size:11pt;font-family:Century Gothic">
<p><b>Alan Manifold | Library Systems & Digital Preservation Manager | Collection Development & Description
</b><br>
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000<br>
T +61 3 8664 7122 | amanifold@slv.vic.gov.au<br>
<a href="http://slv.vic.gov.au" tabindex="0">slv.vic.gov.au</a></p>
<p><br>
<img alt="slv" src="https://www.slv.vic.gov.au/sites/default/files/email_signature/AOC_esignature.png?1"></p>
<table>
<tbody>
<tr>
<td colspan="3"><a href="https://www.slv.vic.gov.au/email_campaign" tabindex="0"><img src="https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9"></a></td>
<td> </td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Brian Hoffman<br>
<b>Sent:</b> Wednesday, May 10, 2023 5:02 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Web hooks or triggers on record update<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Hi Alan,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">There is an endpoint that provides a stream of updated records:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><a href="http://archivesspace.github.io/archivesspace/api/#get-a-stream-of-updated-records">http://archivesspace.github.io/archivesspace/api/#get-a-stream-of-updated-records</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">It is there to enable the indexer to do its work, but perhaps it would work for your use case.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">There is a window during which records can show up in the feed (60 seconds by default) and records in the feed will have a ‘sequence’ attribute. If you make a subsequent request with a ‘last_sequence’
parameter that is equal to or greater than the highest sequence in the feed, the api will block (not respond) until a new update appears or the request times out.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">The records in the feed don’t have any information about what date was updated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Brian<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black"><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
on behalf of Alan Manifold <<a href="mailto:amanifold@slv.vic.gov.au">amanifold@slv.vic.gov.au</a>><br>
<b>Date: </b>Wednesday, May 10, 2023 at 1:52 AM<br>
<b>To: </b><a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject: </b>[Archivesspace_Users_Group] Web hooks or triggers on record update<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi ArchivesSpace community,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">We’re thinking of a few projects that could benefit from something like a webhook or a trigger when specific records are updated. For example, when an archival object record is edited, it could trigger a custom
script that could update metadata in our digital asset management system. Or when a record is unpublished, it could trigger a custom script that would add an event record.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I haven’t found any indication that such functionality exists, but I’m not an expert, so I’m asking. If it doesn’t exist, is this something you think your institution might be able to use as well? If you are
a developer, do you think it would be difficult or easy to add this to the product, either as an enhancement or as a plugin just for our site?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any thoughts would be welcome!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Regards,<br>
Alan Manifold<o:p></o:p></span></p>
<p> <o:p></o:p></p>
<div>
<p><b><span style="font-family:"Century Gothic",sans-serif">Alan Manifold | Library Systems & Digital Preservation Manager | Collection Development & Description
</span></b><span style="font-family:"Century Gothic",sans-serif"><br>
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000<br>
T +61 3 8664 7122 | <a href="mailto:amanifold@slv.vic.gov.au">amanifold@slv.vic.gov.au</a><br>
<a href="http://slv.vic.gov.au">slv.vic.gov.au</a><o:p></o:p></span></p>
<p><span style="font-family:"Century Gothic",sans-serif"><br>
</span><span style="font-family:"Century Gothic",sans-serif;border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="32" height="32" style="width:.3333in;height:.3333in" id="_x0000_i1026" src="cid:~WRD0000.jpg" alt="Image removed by sender. slv"></span><span style="font-family:"Century Gothic",sans-serif"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="https://www.slv.vic.gov.au/email_campaign"><span style="font-size:11.0pt;border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="32" height="32" style="width:.3333in;height:.3333in" id="_x0000_i1025" src="cid:~WRD0000.jpg" alt="Image removed by sender."></span></a><span style="font-size:11.0pt"><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This message and any attachment is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified
that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. Thank you.
<o:p></o:p></span></p>
</div>
This message and any attachment is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly
prohibited. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. Thank you.
</body>
</html>