Re: [Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Karen Miller
: archivesspace_users_group-boun...@lyralists.lyrasis.org On Behalf Of Custer, Mark Sent: Friday, December 18, 2020 1:45 PM To: Archivesspace Users Group Subject: Re: [Archivesspace_Users_Group] Adding an element with the API Karen, In addition to Michelle's great advice, if you're adding notes

Re: [Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Karen Miller
...@lyralists.lyrasis.org On Behalf Of Michelle Paquette Sent: Friday, December 18, 2020 1:16 PM To: Archivesspace Users Group Subject: Re: [Archivesspace_Users_Group] Adding an element with the API Sure thing - I made a mistake in my effort to genericize it anyway and missed a piece, so

Re: [Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Custer, Mark
xample.) And, of course, always best if you have a test environment to do this. If not, you could try things out on one of the other TEST instances out there  Mark From: archivesspace_users_group-boun...@lyralists.lyrasis.org on behalf of Karen Miller Se

Re: [Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Michelle Paquette
gt; Paquette > *Sent:* Friday, December 18, 2020 12:04 PM > *To:* Archivesspace Users Group < > archivesspace_users_group@lyralists.lyrasis.org> > *Subject:* Re: [Archivesspace_Users_Group] Adding an element with the API > > > > Hi Karen, > > > > I think you're

Re: [Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Karen Miller
, 2020 12:04 PM To: Archivesspace Users Group Subject: Re: [Archivesspace_Users_Group] Adding an element with the API Hi Karen, I think you're getting the error because it's looking to set those values on a file version that already exists, and the file version doesn't exist yet. I have a script

Re: [Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Michelle Paquette
Hi Karen, I think you're getting the error because it's looking to set those values on a file version that already exists, and the file version doesn't exist yet. I have a script that does something similar and what I've done is create a definition for a new file version, and then done an

[Archivesspace_Users_Group] Adding an element with the API

2020-12-18 Thread Karen Miller
I hope there are still some folks around to think about an API problem I'm having! We're updating URLs in our digital objects. I can easily update the URL that exists in digital objects, using Python syntax like this: digital_object_json['file_versions'][0]['file_uri'] = permalink post_record