<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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); background-color: rgb(255, 255, 255);">
I am terribly sorry, I have now found that the payload is a JSON serialization of an array of resource objects: <a href="https://github.com/archivesspace/archivesspace/blob/master/backend/spec/controller_batch_import_spec.rb#L41" style="">https://github.com/archivesspace/archivesspace/blob/master/backend/spec/controller_batch_import_spec.rb#L41</a><br>
<br>
Would one then model the payload as one of these arrays of JSON objects, each with a URI internal to the EAD file?</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> James R Griffin III<br>
<b>Sent:</b> Thursday, May 7, 2020 10:30 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Question Regarding the REST API batch_imports Operation</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hello Everyone,<br>
<br>
I have recently been reviewing the documentation for the REST API, and was looking to explore the possible usage of <a href="https://archivesspace.github.io/archivesspace/api/#import-a-batch-of-records" id="LPlnk777205" style="">https://archivesspace.github.io/archivesspace/api/#import-a-batch-of-records</a><br>
<br>
Please forgive for my ignorance, but does the body of the POST request contain a payload of EAD XML? Would this be a string of concatenated EAD documents?<br>
<br>
Additionally, my understanding is that the response from this request contains an identifier for the created object. As the job for importing the records would be asynchronous, should one poll for the status of this new object by repeatedly transmitting a GET
request against <a href="https://archivesspace.github.io/archivesspace/api/#find-resources-by-their-identifiers" id="LPNoLP534764" style="">https://archivesspace.github.io/archivesspace/api/#find-resources-by-their-identifiers</a> until it has been fully imported?<br>
<br>
Thank you for your patience and assistance.<br>
<br>
Sincerely,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
James</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="">-- </span></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style=""><a href="http://my.pronoun.is/he" target="_blank" style="">my.pronoun.is/he</a></span></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="">James R. Griffin III</span></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="">Digital Infrastructure Developer</span></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style=""><a href="https://library.princeton.edu/" style="">Princeton University Library</a></span></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="">Princeton, NJ 08544</span></p>
<br>
</div>
</div>
</div>
</div>
</body>
</html>