<div dir="ltr"><div class="gmail_extra">Thanks, James. Looking at the docs again, I now see my misunderstanding. </div><div class="gmail_extra"><br></div><div class="gmail_extra">term.*.uri is indeed misleading. Could be a mnemonic for the term database identifier (<a href="http://term.id">term.id</a>) or otherwise a development artifact.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So I take it 1) terms can't be updated by conventional means (i.e. the API) and 2) my primary alternative is to issue database queries in order to perform bulk updates to a set of terms? </div><div class="gmail_extra"><br></div><div class="gmail_extra">JL</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 5:40 PM, James Bullen <span dir="ltr"><<a href="mailto:james@hudmol.com" target="_blank">james@hudmol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><br></div>Hi Jason,<div><br></div><div>There is a GET /terms endpoint. It does a search and takes a q=.</div><div><br></div><div>There is no GET /terms/:id - I guess this is the one that’s giving you a Not Found.</div><div><br></div><div>And there is no POST /terms.</div><div><br></div><div>Here’s the controller:</div><div><a href="https://github.com/archivesspace/archivesspace/blob/master/backend/app/controllers/term.rb" target="_blank">https://github.com/<wbr>archivesspace/archivesspace/<wbr>blob/master/backend/app/<wbr>controllers/term.rb</a></div><div><br></div><div>Terms aren’t really first order objects (they get managed via their parent object), so I’m not sure why they have a uri. For example:</div><div><br></div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>/terms q=Audio</div><div>{</div><div> "first_page": 1,</div><div> "last_page": 1,</div><div> "this_page": 1,</div><div> "results":</div><div> [</div><div> {</div><div> "lock_version": 0,</div><div> "term": "Audio",</div><div> "created_by": "admin",</div><div> "last_modified_by": "admin",</div><div> "create_time": "2017-02-07T05:34:29Z",</div><div> "system_mtime": "2017-02-07T05:34:29Z",</div><div> "user_mtime": "2017-02-07T05:34:29Z",</div><div> "term_type": "genre_form",</div><div> "jsonmodel_type": "term",</div><div> "uri": "/terms/3",</div><div> "vocabulary": "/vocabularies/1"</div><div> }</div><div> ]</div><div>}</div><div><br></div></blockquote><div>You see it has a uri (/terms/3), but that is a bit of a lie because there is no corresponding endpoint. There could well be a good reason for this, but I’m not aware of it.</div><div><br></div><div><br></div><div>Cheers,</div><div>James</div><div><br></div><div><br><div><blockquote type="cite"><div>On Feb 10, 2017, at 6:40 AM, Jason Loeffler <<a href="mailto:j@minorscience.com" target="_blank">j@minorscience.com</a>> wrote:</div><br class="gmail-m_-6770221942890355445Apple-interchange-newline"><div><div dir="ltr">Can anyone confirm whether the GET method for terms works? I'm getting 'Not Found'. Also, is there an undocumented POST method for terms?<div><div><br></div><div>Thanks.</div><div><br clear="all"><div><div class="gmail-m_-6770221942890355445gmail_signature"><div dir="ltr"><div dir="ltr"><div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">Jason Loeffler</font></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">Technology Consultant | </font><span style="color:rgb(102,102,102);font-family:garamond,serif">The American Academy in Rome</span></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">Minor Science | Application Development & Metadata Strategy</font></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">Brooklyn, New York</font></div></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666"><a href="mailto:jason@minorscience.com" target="_blank">jason@minorscience.com</a></font></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666"><a href="tel:(347)%20405-0826" value="+13474050826" target="_blank">(347) 405-0826</a></font></div><div><font size="2" face="garamond, serif" style="background-color:rgb(255,255,255)" color="#666666">minorscience (Skype)</font></div><div><br><br></div></div></div></div></div>
</div></div></div>
!DSPAM:589cc60444364107784971!
______________________________<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><br><br>!DSPAM:589cc60444364107784971!<br></div></blockquote></div><br></div></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></div></div>