<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);">Karen,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);">In addition to Michelle's great advice, if you're adding notes, you'll want to follow the same model of creating the whole note
and posting it. </span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);">Here's an ugly mocked-up example:</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"> <span style="caret-color: rgb(0, 0, 0); background-color: rgb(255, 255, 0); display: inline !important;">new_sc_note_content</span><span style="caret-color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); display: inline !important;">
= "Whatever note you're adding"</span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
note = {"jsonmodel_type": "note_multipart", <span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background: var(--white);">"type": "scopecontent", "publish": True,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div> "subnotes": [{"jsonmodel_type": "note_text",</div>
<div> "content": <span style="background-color: rgb(255, 255, 0);">
new_sc_note_content</span>,</div>
<div> "publish": True}]}</div>
<div><br>
</div>
record_json["notes"].append(note)<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
But notes are trickiest, since there are a few different ways that ArchivesSpace models those depending on the note type, and if there are lists, etc. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When working with the API and ArchivesSpace this way, I'd suggest going through the following steps (rather than trying to read the codebase and the internal data schemas<span id="🙂">)</span>:</div>
<div>
<ol>
<li><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">Create the data that you want to add to ASpace directly in the staff interface (e.g. create a digital object with those two file URIs, and the two
notes, etc.)</span></font></li><li><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">Also create another record that just has the required data fields (e.g. just a digital object with a title or whatever is required, and not the extra
stuff you want to add)</span></font></li><li><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">Use the API to get both of those objects and check out what the JSON looks like.</span></font></li><li><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">Then, write your script to model the data the same way (and, the reason to grab an object with a minimal amount of data is just to see if you need
to create a new data field like for "notes", of if that key will already be present even when empty, etc.).</span></font></li><li><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">Check out the results after you post your new data to a variety of existing records and make sure that your script won't overwrite any existing data
that you don't want to erase (e.g. if you're adding a thumbnail URI, you'll want to make sure that you "append" it, as in Michelle's example.)</span></font></li></ol>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">And, of course, always best if you have a test environment to do this. If not, you could try things out on one of the other TEST instances out
there <span id="🙂">🙂 </span></span></font></div>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br>
</span></font></div>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);">Mark</span></font></div>
</div>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br>
</span></font></div>
<div><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br>
</span></font></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Karen Miller
<k-miller3@northwestern.edu><br>
<b>Sent:</b> Friday, December 18, 2020 1:20 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Adding an element with the API</font>
<div> </div>
</div>
<div lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Arial",sans-serif; color:#1F497D">Thank you, Michelle!</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Arial",sans-serif; color:#1F497D">Yes, if you don’t mind sending the script, I’d really appreciate it. This looks like what I need, but I think having the script might be useful.</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Arial",sans-serif; color:#1F497D">Karen</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Michelle Paquette<br>
<b>Sent:</b> Friday, December 18, 2020 12:04 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Adding an element with the API</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
<div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
Hi Karen,</p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
I think you're getting the error because it's looking to set those values on a file version that already exists, and the file version doesn't exist yet.</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
I have a script that does something similar and what I've done is create a definition for a new file version, and then done an "append" on the record in question (record being the digital object).</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
def add_thumbnail(thumbnail_uri):</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
note_dict = {'file_uri': thumbnail_uri,</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
'publish': True, #change to False if you do not want the file version to be published.</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
'xlink_actuate_attribute': 'onLoad',</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
'xlink_show_attribute': 'embed',</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
'use_statement': 'image-thumbnail',</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
'jsonmodel_type': 'file_version'</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
}</p>
</div>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
Later I have record['file_versions'].append(add_thumbnail)</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
thumbnail_uri is coming from a spreadsheet. If seeing the full script is helpful for you please let me know and I'd be happy to share it with you.</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
Best,</p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
Michelle</p>
</div>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
On Fri, Dec 18, 2020 at 12:48 PM Karen Miller <<a href="mailto:k-miller3@northwestern.edu" target="_blank">k-miller3@northwestern.edu</a>> wrote:</p>
</div>
<blockquote style="border:none; border-left:solid #CCCCCC 1.0pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">I hope there are still some folks around to think about an API problem I’m having!</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">We’re updating URLs in our digital objects. I can easily update the URL that exists in digital objects, using Python syntax like this:</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;text-indent:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['file_versions'][0]['file_uri'] = permalink</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">post_record = <a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Frequests.post__%3B!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBCqnUIrH0%24&data=04%7C01%7Cmark.custer%40yale.edu%7C36863ac5286d4811913908d8a3818cab%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637439124135695886%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WNREmt6ejEX6yL8fWcKfO3uy2k%2BVAIycuo2Kcy3DO5U%3D&reserved=0" originalsrc="https://urldefense.com/v3/__http:/requests.post__;!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBCqnUIrH0$" shash="YiggSMtHkahvWW4b65PNAoMIqDviPvTCI1ztbr8x18RHXcSsYx4bLmuXw6hczuraGt96znhS9WmOC9aU3yuS86t0xJKhWdd6Qvj1H0LytP31swSo6uwkwcvIl7JujpEK1SkepcK+QOvBWKKfdRvqFud7zx/lxQXClj5AQhl0BNM=" target="_blank">
requests.post</a>(f"{api_url}/{digital_object_uri}", headers=headers, json=digital_object_json).json()</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">where “permalink” is a value I’ve read in from a spreadsheet. This works just fine for me. But I wanted to get fancy and add a second URL as a thumbnail (I can do this through the staff interface and
it works the way I anticipate) as well as a couple of notes. I thought that the syntax would be straightforward:
</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['file_versions'][1]['file_uri'] = thumbnail</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][0]['content'] = note1</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][0]['jsonmodel_type'] = 'note_digital_object'</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][0]['publish'] = False</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][0]['type'] = 'note'
</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][1]['content'] = note2</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][1]['jsonmodel_type'] = 'note_digital_object'</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][1]['publish'] = False</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin-left:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">digital_object_json['notes'][1]['type'] = 'note'</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">where “thumbnail”, “note1”, and “note2” are values from the spreadsheet. However, I’m getting this error for each of these statements:</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;text-indent:.5in">
<span style="font-family:"Arial",sans-serif; color:#1F497D">IndexError: list index out of range</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">because those aren’t already in the JSON that I’ve retrieved. How do I add to the JSON? I’m not experienced enough with JSON or with Python and am looking for some basic help. Any advice will be appreciated!</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">Best regard and happy holidays,</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">Karen</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span style="font-family:"Arial",sans-serif; color:#272323">Karen D. Miller</span></b></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:black">Monographic Cataloger/Metadata Specialist</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#272323">Northwestern University Libraries</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#4E2A85">Northwestern University</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:black">1970 Campus Drive</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:black">Evanston, IL 60208</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#272323"><a href="https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.library.northwestern.edu%2F&data=04%7C01%7Cmark.custer%40yale.edu%7C36863ac5286d4811913908d8a3818cab%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637439124135695886%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=RIPaUDLm4MzCHuo22Dl%2BjbZC8%2FYBHQRKIh1zCtDRmEI%3D&reserved=0" originalsrc="http://www.library.northwestern.edu/" shash="uGhEujERwQq6MB0O24K5yNff+jZ8DUE6Xqs5hoe+CQaDeLC42SVp4XdEw954T55dpgOjrY1x9vJ4IHd6VhZvTUtPEGAChoW18eJnZsnCEDmTcqtDePepXPlCjYE1NRtyLp0vH8/0ErJg149+4j4RCgME4o48vIwa+ap91MCXhX4=" target="_blank">www.library.northwestern.edu</a></span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:black"><a href="mailto:k-miller3@northwestern.edu" target="_blank">k-miller3@northwestern.edu</a></span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Arial",sans-serif; color:#272323">874.467.3462</span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
</div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group__%3B!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBCpowfNuQ%24&data=04%7C01%7Cmark.custer%40yale.edu%7C36863ac5286d4811913908d8a3818cab%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637439124135705839%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=hx1oH%2BpYXKdeeztflGyWWPnawwbIBnCtX2CExfOByEE%3D&reserved=0" originalsrc="https://urldefense.com/v3/__http:/lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBCpowfNuQ$" shash="C0VHuZb8dK5NXXVwZRqoPM5voIns0BHGgh/3PMH6JeHXoTbX8Px3rNZsbjs8hVyzMnJudKD9nUgUeesnujuy6QXAwYcWOM+UH40mb44/fiNSs/xlxdZLCgouPJgnJ274/s8vPen9tKzFc2W8gGb2VmXrPLVESrSz1O+Nhydthms=" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></p>
</blockquote>
</div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<br clear="all">
</p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
-- </p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif">Michelle Paquette</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif">(she/her)</span></p>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif">Metadata & Technical Services Archivist</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif">Special Collections</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif">Smith College</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif">413-585-7029</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Tahoma",sans-serif"><a href="mailto:mpaquette@smith.edu" target="_blank">mpaquette@smith.edu</a></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
</div>
<div>
<p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;margin:0in; margin-bottom:.0001pt">
<span style="font-family:"Arial",sans-serif; color:black">Please note: In light of COVID-19, the Libraries are offering contactless pickup, and all other services will continue to be offered remotely. Visit
</span><span style="color:#222222"><a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Fbit.ly%2FSCLcovid-19__%3B!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBChRVz_a6%24&data=04%7C01%7Cmark.custer%40yale.edu%7C36863ac5286d4811913908d8a3818cab%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637439124135705839%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=RfigzGk07udEYeH4pzgwpAcWjiJv167DNmPZ%2Bkkv8%2Bw%3D&reserved=0" originalsrc="https://urldefense.com/v3/__http:/bit.ly/SCLcovid-19__;!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBChRVz_a6$" shash="tJLo54m5WV31u92F1G5g5KH2kSOg5OR3CWALG7ItXrLLanIsezVdmFW0PHUYhUKgrLuuSMLXEjuUh/dampaU+iiYmSGMmtgWi0Z62gY11WdMHJxR2y+Psq2G2CMedG0DxpFf/SSu7pDTJlgaWSoHZ93L30h8HYii9fPZ0K3jK8g=" target="_blank"><span style="font-family:"Arial",sans-serif; color:#1155CC">bit.ly/SCLcovid-19</span></a></span><span style="font-family:"Arial",sans-serif; color:black">
for full details.</span><span style="color:#222222"></span></p>
<p class="x_MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="color:#222222"><br>
</span><span style="font-family:"Arial",sans-serif; color:black">Please send any questions you may have to
</span><span style="color:#222222"><a href="mailto:libraryhelp@smith.edu" target="_blank"><span style="font-family:"Arial",sans-serif; color:#1155CC">libraryhelp@smith.edu</span></a></span><span style="font-family:"Arial",sans-serif; color:#222222">
</span><span style="font-family:"Arial",sans-serif; color:black">and they will be answered as soon as possible. Special Collections</span><span style="font-family:"Arial",sans-serif; color:#222222">
</span><span style="color:#222222"><a href="mailto:specialcollections@smith.edu" target="_blank"><span style="font-family:"Arial",sans-serif; color:#1155CC">reference service</span></a></span><span style="font-family:"Arial",sans-serif; color:black"> is active,
but limited. For information about Smith College’s response to Covid-19, please visit the</span><span style="color:#222222"><a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fwww.smith.edu%2Fstudent-life%2Fhealth-wellness%2Fcoronavirus__%3B!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBCpNSNyOQ%24&data=04%7C01%7Cmark.custer%40yale.edu%7C36863ac5286d4811913908d8a3818cab%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637439124135715797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=195QZvejKeXdZBahvGT16sI03iyP7qZkkbJNfRmmm7c%3D&reserved=0" originalsrc="https://urldefense.com/v3/__https:/www.smith.edu/student-life/health-wellness/coronavirus__;!!Dq0X2DkFhyF93HkjWTBQKhk!FM_atqifl5z9WUFHxd0sKcmtc-C-nYZGSNcAH-NEN41PVE71q3zKB8X96v264rUBCpNSNyOQ$" shash="T/Q3okw6RdhCQyH76pKFqUFJhIzd9woi2oeh1VnVNYLj6iMM93FfzXOtdTktsUUuTK6yvRjSh+DlpLa9ilxC/5vZX6PQdXzoAnAmVcKkniLHiSPo0XG99pRxcAsYD9eI4wcqm0Yhq+F2mQZa7lRBK1rr0jkqa0d8UJ8vYZLDaeA=" target="_blank"><span style="font-family:"Arial",sans-serif; color:#222222">
</span><span style="font-family:"Arial",sans-serif; color:#1155CC">college’s official website</span></a></span><span style="font-family:"Arial",sans-serif; color:black">.</span><span style="font-family:"Arial",sans-serif; color:#222222">
</span><span style="color:#222222"> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>