<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Alan,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
In my previous position, we used the update-feed endpoint to trigger updates to metadata in our digital repository when a related ArchivesSpace record (i.e. for an object that is digitized) was updated. I can put you in contact with the lead developer on that
project off-list if that would be helpful.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
cheers</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
-kevin<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Brian Hoffman
<brian.hoffman@lyrasis.org><br>
<b>Sent:</b> Wednesday, May 10, 2023 3:02 AM<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</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:"Century Gothic"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
span.x_EmailStyle20
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt">Hi Alan,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">There is an endpoint that provides a stream of updated records:</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"><a href="http://archivesspace.github.io/archivesspace/api/#get-a-stream-of-updated-records" originalsrc="http://archivesspace.github.io/archivesspace/api/#get-a-stream-of-updated-records" shash="z98W7I+McmX3pcT7nhexVeJz0zuvp6sIwE8M73tiQKRC8vUmw4pPms2NV4LihsdPEpF8ct+/NbbuktZQ7RF9Ibg4QXwnzfLKJqxYPMsSqs9QOjV6qDP+9RiKskMxRCagEailutHhw7xP8atsCKtBrpAJBRGiyKIC37h9m9hX1Lc=">http://archivesspace.github.io/archivesspace/api/#get-a-stream-of-updated-records</a></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span 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.
</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span 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.
</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">The records in the feed don’t have any information about what date was updated.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Brian</span></p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><b><span lang="EN-AU" style="font-size:12.0pt; color:black">From:
</span></b><span lang="EN-AU" style="font-size:12.0pt; color:black">archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Alan Manifold <amanifold@slv.vic.gov.au><br>
<b>Date: </b>Wednesday, May 10, 2023 at 1:52 AM<br>
<b>To: </b>archivesspace_users_group@lyralists.lyrasis.org <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>[Archivesspace_Users_Group] Web hooks or triggers on record update</span></p>
</div>
<p class="x_MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">Hi ArchivesSpace community,</span></p>
<p class="x_MsoNormal"><span lang="EN-AU" 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.</span></p>
<p class="x_MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span lang="EN-AU" 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?</span></p>
<p class="x_MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">Any thoughts would be welcome!</span></p>
<p class="x_MsoNormal"><span lang="EN-AU" style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span lang="EN-AU" style="font-size:11.0pt">Regards,<br>
Alan Manifold</span></p>
<p><span lang="EN-AU"> </span></p>
<div>
<p><b><span lang="EN-AU" style="font-family:"Century Gothic",sans-serif">Alan Manifold | Library Systems & Digital Preservation Manager | Collection Development & Description
</span></b><span lang="EN-AU" style="font-family:"Century Gothic",sans-serif"><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/" originalsrc="http://slv.vic.gov.au/" shash="DgyWimYbWh7VIgBiet+ANMdoZs5IOzDg+RyqLtdAm+hEN5itA6J+HuIp2jre4JNGu3KSKH+poHIeu/TB9rF70pyzKQjZJkQet2XZjRXhLSBQ5+WODhwAsFof1v+USkT9sleLUQ7SmfZ3M+qrnYqljEEjkJeM6Ma/a+ALZuDXLQc=">slv.vic.gov.au</a></span></p>
<p><span lang="EN-AU" style="font-family:"Century Gothic",sans-serif"><br>
<span style="border:solid windowtext 1.0pt; padding:0in"><img border="0" width="32" height="32" id="x__x0000_i1026" alt="Image removed by sender. slv" style="width:.3333in; height:.3333in" data-outlook-trace="F:0|T:1" src="cid:~WRD0000.jpg"></span></span></p>
<table class="x_MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="x_MsoNormal"><a href="https://www.slv.vic.gov.au/email_campaign" originalsrc="https://www.slv.vic.gov.au/email_campaign" shash="xHtm/ojVC+oDcjrG67lfz7pqA2t6u7957sK3Adb/y3NcjY7Gs0vVShZWmbWLA7TY0aYTwit9a16keN6sOzssZyy8rn66WzBJxTmlzQJVHbSmUiDqqjYrSLummmczEH9BEJGS1iMjilYbK5JBqIcKmrfedKufJNmMmjr7gvl7Fck="><span style="font-size:11.0pt; color:windowtext; text-decoration:none"><span style="color:#0563C1; border:solid windowtext 1.0pt; padding:0in"><img border="0" width="32" height="32" id="x__x0000_i1025" alt="Image removed by sender." style="width:.3333in; height:.3333in" data-outlook-trace="F:0|T:1" src="cid:~WRD0000.jpg"></span></span></a><span style="font-size:11.0pt"></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><span lang="EN-AU"> </span></p>
<p class="x_MsoNormal"><span lang="EN-AU" 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.
</span></p>
</div>
</div>
</body>
</html>