[Archivesspace_Users_Group] Batch export EAD with numbered components using API?

Mark Cooper mark.cooper at lyrasis.org
Mon Sep 8 17:01:27 EDT 2014


?Hi Noah,


You need the "numbered_cs" param. See:


http://sandbox.archivesspace.org:8089/doc

under: GET /repositories/:repo_id/resource_descriptions/:id.xml


So this should work: curl -O -H "X-ArchivesSpace-Session: $TOKEN" "[backend-url]/repositories/41/resource_descriptions/$IDs.xml?numbered_cs=true"


Mark


Mark Cooper
LYRASIS -- Application Developer
mark.cooper at lyrasis.org<mailto:mark.cooper at lyrasis.org>
800.999.8558 x 2920
mark_c_cooper [Skype]
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Noah Huffman <noah.huffman at duke.edu>
Sent: Monday, September 08, 2014 12:40 PM
To: 'Archivesspace_Users_Group at lyralists.lyrasis.org'
Subject: [Archivesspace_Users_Group] Batch export EAD with numbered components using API?

Hello,

I'm trying to batch export all resource records as EAD in a given repository using the API, but I can't quite figure out how to get numbered components (instead of unnumbered).

With the following command, I can get all resources as EAD with unnumbered components ($IDs is a list of all resource IDs in curly braces):
curl -O -H "X-ArchivesSpace-Session: $TOKEN" "[backend-url]/repositories/41/resource_descriptions/$IDs.xml

Does anyone know the syntax for using the numbered component option with the API?

Thanks!
-Noah

================
Noah Huffman
Archivist for Metadata and Encoding
David M. Rubenstein Rare Book & Manuscript Library
Duke University
noah.huffman at duke.edu<mailto:noah.huffman at duke.edu>
919-660-5982
http://library.duke.edu/rubenstein/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20140908/140e5b5a/attachment.html>


More information about the Archivesspace_Users_Group mailing list