[Archivesspace_Users_Group] Example of programmatically updating /agents/people via REST?

Mark Cyzyk mcyzyk at jhu.edu
Wed Apr 20 13:45:46 EDT 2016


Does anyone have a really good and clear example of how to update 
/agents/people via the REST API?  If so, I would love to see it.

We've extracted a chunk of JSON using the API, have modified parts of 
it, and now want to push it back in.

It's looking like, in order to do this, the pseudo-code would be 
something like:

Read edited JSON file
Parse JSON
Start a session with the ASpace server
Begin loop over parsed JSON
      Post each /agent/people item individually using its ID
End loop
Spin in chair

That's what I'm working on now (but would love to see a working example 
[in Ruby or Python, preferably]).

Best regards,


Mark Cyzyk, M.A., M.L.S.
Scholarly Communication Architect
User Interface Applications Group
The Sheridan Libraries
The Johns Hopkins University
mcyzyk at jhu.edu

More information about the Archivesspace_Users_Group mailing list