<div dir="ltr">That totally works. Thanks Steve!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 2, 2017 at 11:22 AM, Majewski, Steven Dennis (sdm7g) <span dir="ltr"><<a href="mailto:sdm7g@eservices.virginia.edu" target="_blank">sdm7g@eservices.virginia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div><br>
</div>
<div>I haven’t used that API endpoint, but for all of the ones that can take an array of values, for example accessing resources with id_set[] param, the URL syntax is something like:</div>
<div><br>
</div>
<div><span class="m_3724064714283603179Apple-tab-span" style="white-space:pre-wrap"></span>/repositories/3/resources?id_<wbr>set[]=230&id_set[]=223&id_set[<wbr>]=222</div>
<div><br>
</div>
<div>so for that endpoint, you probably want to append “?id[]=2” to the URL. </div>
<div><br>
</div>
<div>And if you’re using curl, remember to use the ‘-g’ (glob off) option so it doesn’t interpret “[]” internally. </div>
<div><br>
</div>
<div>— Steve. </div>
<div><br>
</div>
<div><br>
</div>
<br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On Mar 2, 2017, at 10:28 AM, Trevor Thornton <<a href="mailto:trthorn2@ncsu.edu" target="_blank">trthorn2@ncsu.edu</a>> wrote:</div>
<br class="m_3724064714283603179Apple-interchange-newline">
</div></div><div><div><div class="h5">
<div dir="ltr">
<div>Hi everybody-</div>
<div><br>
</div>
I'm trying to batch update container_profiles assigned to top_containers using the API endpoint documented here:
<div><br>
</div>
<div><a href="http://archivesspace.github.io/archivesspace/api/#post-repositories-repo_id-top_containers-batch-container_profile" target="_blank">http://archivesspace.github.<wbr>io/archivesspace/api/#post-<wbr>repositories-repo_id-top_<wbr>containers-batch-container_<wbr>profile</a></div>
<div><br>
</div>
<div>... and I'm having trouble passing the 'ids' parameter. The data type for this parameter is '[Integer]' (with the brackets). Everything I try results in an error complaining that the value I sent is a string and not an [Integer], eg:</div>
<div><br>
</div>
<div>"Wanted type [Integer] but got '2'"<br>
</div>
<div>"Wanted type [Integer] but got '[2]'"<br>
</div>
<div><br>
</div>
<div>Can anyone explain how to correctly format the parameters for this? Any insight is appreciated.<br>
</div>
<div><br>
</div>
<div>(BTW - we're using version 1.5.1.)<br clear="all">
<div><br>
</div>
<div>Thanks,</div>
<div>Trevor</div>
<div><br>
</div>
-- <br>
<div class="m_3724064714283603179gmail_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>
</div>
</div></div></div>
______________________________<wbr>_________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@<wbr>lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/<wbr>mailman/listinfo/<wbr>archivesspace_users_group</a><br>
</div>
</blockquote>
</div>
<br>
</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"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>
</div>