[Archivesspace_Users_Group] Error updating resource records through API
Peter Heiner
ph448 at cam.ac.uk
Fri Apr 17 10:53:13 EDT 2020
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 been modified since you fetched it.'
To update a record, you first need to fetch it to get its lock_version.
The API will only allow updates to a resource with a lock_version
greater than the one stored in the database, so you'll need to post your
data including lock_version+1.
Hope that helps,
p
More information about the Archivesspace_Users_Group
mailing list