You can just send back the lock_version you got with the get. No need to bump
it - that happens on a successful update. The response to the update will
include the new lock_version, like this:
{
"status": "Updated",
"id": 2,
"lock_version": 23,
"stale": NULL,
"uri":
Huebschen, Alan M wrote on 2020-04-17 14:26:24:
> I've been attempting to update existing resource records through the API, the
> records already exist and I'm trying to upload modified versions of the JSON
> but I'm getting an error in response.
>
> 'error': 'The record you tried to update has
So, ArchivesSpace keeps track of whether it’s safe to modify an object via a
field called “lock_version”. Any change to an object will increment this value,
and this is probably what’s catching you up – something is altering the value
between when you download the resource and when you update
Are you modifying the lock version?
Donald R. Mennerich, digital archivist
New York University Libraries
don.menner...@nyu.edu (212) 992-6264
On Fri, Apr 17, 2020 at 10:26 AM Huebschen, Alan M wrote:
> Hi all,
>
>
>
> I’ve been attempting to update existing resource records through the API,
Hi all,
I've been attempting to update existing resource records through the API, the
records already exist and I'm trying to upload modified versions of the JSON
but I'm getting an error in response.
'error': 'The record you tried to update has been modified since you fetched
it.'
At first