<div dir="ltr">Those conflict errors might mean that you're adding a barcode that already exists, which is restricted at the database level so there's no way around it. <div><br></div><div>The standard (or at least a common) approach for doing updates via the API is to first get the record you want to update, modify the JSON you get back (to add the barcode in your case), then send that updated JSON with your POST request.</div><div><br></div><div>When I went through the process of adding top container barcodes, I opted to make the updates directly to the database because I found it to be easier to script. Doing it this way requires you to update the Solr index manually – removing data/indexer_state/6_top_container.dat should do that (not sure if the '6' in that filename is consistent, but it will always end with top_container.dat).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 25, 2022 at 10:38 AM Matthew Adair <<a href="mailto:mladair@umich.edu">mladair@umich.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi folks -<div>I've been trying to come up with a routine to update barcodes in top containers via the API but so far, no luck. The server keeps returning a "409 conflict" error.</div><div><br></div><div>Anybody know what the minimum requirements for the JSON payload would be to update a container barcode?  Or, perhaps more details on the 409 conflict error?</div><div><br></div><div>Thanks,</div><div>Matt</div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>----<b><br>Matt Adair</b><br></div><div>Archivist for Digital Imaging and Infrastructure</div><div><br></div><div dir="ltr"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4zQSmqLoMdUNhv3966x340KqFDspUjPLDP2yUhADeQmdyoueQpr4Qg5-GGeIU6zcksd6KYM5Ik" width="200" height="15"><br></div>Bentley Historical Library<br>1150 Beal Avenue<br>Ann Arbor, Michigan 48109-2113<br>734-647-3537<br><a href="http://bentley.umich.edu" target="_blank">http://bentley.umich.edu<br></a>@UmichBentley </div><div dir="ltr"><br></div><div dir="ltr"><font color="#666666"><i>The Bentley Historical Library acknowledges that coerced cessions of land by the Anishnaabeg and Wyandot made the University of Michigan possible, and we seek to reaffirm the ancestral and contemporary ties of these peoples to the lands where the University now stands.</i></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<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="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Trevor Thornton</font><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Applications Developer, Digital Library Initiatives</font></div><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">North Carolina State University Libraries</font></div></div></div></div></div></div></div>