<div dir="ltr"><div><div><div>Dallas,<br><br></div>Many thanks! This worked perfectly.<br><br></div>Thanks again,<br></div>--Alex<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 21, 2016 at 2:24 PM, Dallas Pillen <span dir="ltr"><<a href="mailto:djpillen@umich.edu" target="_blank">djpillen@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alexander,<div><br></div><div>We had a script that did just that using the update enumeration endpoint (POST /config/enumerations/:enum_id) by first getting the enumeration's JSON object, adding new enumeration values to the enumeration's "values" array, and posting the updated JSON (<a href="https://gist.github.com/djpillen/4dd8f3b2e4672a1874c8ac8c646037db" target="_blank">see example gist</a>). This handles the creation of new enumeration_values; they do not need to be created separately. </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Oct 21, 2016 at 2:01 PM, Alexander Duryee <span dir="ltr"><<a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>As part of our deployment process, I would like to have a script that automatically adds new enumeration values to certain enumerations. Querying on the /config/enumerations/:enumerat<wbr>ion_id endpoint returns a JSON object that ensconces a number of enumeration_value objects, so it seems like I need to create the enumeration_value, then add that to the enumeration. However, there seem to be no endpoints for creating new enumeration_value objects. Is there another method that I should be using to create/update enumerations with new values via the API?<br><br></div>Thanks,<br></div>--Alex<span class="m_8646791124692776448HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div><br>-- <br><div class="m_8646791124692776448m_393434967757538283gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexander Duryee<div>Metadata Archivist</div><div>New York Public Library</div><div><a href="tel:%28917%29-229-9590" value="+19172299590" target="_blank">(917)-229-9590</a></div><div><a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a></div></div></div></div></div>
</div></div></div></div></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyra<wbr>lists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/m<wbr>ailman/listinfo/archivesspace_<wbr>users_group</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_8646791124692776448gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8000001907349px"><b>Dallas Pillen<br></b>Assistant Archivist for Metadata and Digital Projects<b><br></b></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><img src="https://webapps.lsa.umich.edu/dean/lsa_emails/bentley-sig-em.png" width="351" height="40"><br></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1"> <a href="http://bentley.umich.edu/" style="color:rgb(17,85,204)" target="_blank">Bentley Historical Library</a></font></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1"> 1150 Beal Avenue</font></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1"> Ann Arbor, Michigan 48109-2113</font><span style="font-size:x-small"> </span></div><div style="font-size:12.8000001907349px"><a value="+17347643482" style="font-size:x-small"><font color="#000000"> </font></a><a value="+17347643482" style="color:rgb(34,34,34);font-size:x-small">734.647.3559</a></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1"> <a href="https://twitter.com/umichBentley" style="color:rgb(17,85,204)" target="_blank">Twitter</a> <a href="https://www.facebook.com/bentleyhistoricallibrary" style="color:rgb(17,85,204)" target="_blank">Facebook </a></font></div></div></div></div></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@<wbr>lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/<wbr>mailman/listinfo/<wbr>archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexander Duryee<div>Metadata Archivist</div><div>New York Public Library</div><div>(917)-229-9590</div><div><a href="mailto:alexanderduryee@nypl.org" target="_blank">alexanderduryee@nypl.org</a></div></div></div></div></div>
</div>