<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dallas, this is AWESOME. Funnily enough, I too need to look up the archival object by its refid. This is almost literally everything I need.
<div class=""><br class="">
</div>
<div class="">Maureen<br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 7, 2015, at 2:13 PM, Dallas Pillen <<a href="mailto:djpillen@umich.edu" class="">djpillen@umich.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Maureen,
<div class=""><br class="">
</div>
<div class="">Not sure if this is the best/most appropriate way to do this, but I worked up a prototype for doing something similar to this that grabs an archival object's JSON, creates a new digital object and stores its URI, and then uses the update archival
object endpoint (POST /repositories/:repo_id/:archival_objects/:id) to repost the archival object with the new instance. The script (that also has some probably irrelevant stuff up top to search for an archival object by its refid) is here: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_djpillen_bentley-5Fscripts_blob_master_update-5Farchival-5Fobject.py&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=dE3x7UoGF1uqohcJg-skOipZKdbJwzJ4TqiLeSIeZUo&e=" class="">https://github.com/djpillen/bentley_scripts/blob/master/update_archival_object.py</a></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Fri, Aug 7, 2015 at 1:44 PM, Callahan, Maureen <span dir="ltr" class="">
<<a href="mailto:maureen.callahan@yale.edu" target="_blank" class="">maureen.callahan@yale.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,<br class="">
<br class="">
This may be a dumb question. I’m trying to wade in from the shallow end.<br class="">
<br class="">
I have a list of digital objects that I want to create in ArchivesSpace and a list of which archival objects they should become instances of. I’m sitting down to write a script to start doing this work, and I’m wondering if this is possible — if there’s actually
an endpoint that will let me do this. I see that I can post children digital objects to already-existing digital objects (POST /repositories/:repo_id/digital_object_components/:id/children), but I don’t see an explicit way to add digital objects as instances
of archival objects.<br class="">
<br class="">
Thoughts? How would others approach this work?<br class="">
<br class="">
Maureen<br class="">
_______________________________________________<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="">
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=EIrEqNZEYtei_m-oBWB9oWhuSJCOVGeTiCL-wu8OwE8&e=" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="font-size:12.8000001907349px" class=""><b class="">Dallas Pillen<br class="">
</b>Project Archivist<b class=""><br class="">
</b></div>
<div style="font-size:12.8000001907349px" class=""><br class="">
</div>
<div style="font-size: 12.8000001907349px;" class=""><img src="https://webapps.lsa.umich.edu/dean/lsa_emails/bentley-sig-em.png" height="40" width="351" class=""><br class="">
</div>
<div style="font-size: 12.8000001907349px;" class=""><font size="1" class=""> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__bentley.umich.edu_&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=z3DyD703-db39h_NpdvyUMRDYJN7lNb30ar8v6Kb6r4&e=" style="color:rgb(17,85,204)" target="_blank" class="">Bentley
Historical Library</a></font></div>
<div style="font-size: 12.8000001907349px;" class=""><font size="1" class=""> 1150 Beal Avenue</font></div>
<div style="font-size: 12.8000001907349px;" class=""><font size="1" class=""> Ann Arbor, Michigan 48109-2113</font><span style="font-size:x-small" class=""> </span></div>
<div style="font-size:12.8000001907349px" class=""><a value="+17347643482" style="font-size:x-small" class=""> </a><a value="+17347643482" style="color:rgb(34,34,34);font-size:x-small" class="">734.647.3559</a></div>
<div style="font-size: 12.8000001907349px;" class=""><font size="1" class=""> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_umichBentley&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=sRTAloRI72D0L8OjZXMJ7Z6VSwSxVWUI9mryMRFLyFs&e=" style="color:rgb(17,85,204)" target="_blank" class="">Twitter</a> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.facebook.com_bentleyhistoricallibrary&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=pjLNswB69vW8_MmpvMNA0Y_7Qt8G_BSj_FpDL04lVts&e=" style="color:rgb(17,85,204)" target="_blank" class="">Facebook </a></font></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" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwICAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=JgH2YCQ8D3P9-Lm_x4bv3d2CZBYlbx6hxnLFHtfovi8&m=mTC1w7j4SL0FLJQhDu7aWSipl_20tTouhMmmqe-h-1s&s=EIrEqNZEYtei_m-oBWB9oWhuSJCOVGeTiCL-wu8OwE8&e=
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>