Closed daviddavo closed 8 months ago
Furthermore, it seems that now update accepts just the metadata
field. The response is giving me lots of "Unknown field" error messages.
This can be fixed like this:
res = requests.put(
f"{self.depositions_base}/{new_deposition_id}",
json={"metadata": new_deposition_data["metadata"]},
params={"access_token": self.access_token},
)
To fix the version thing, I guess you will have to use get_latest_record
I WAS USING A WRONG RECORD NUMBER!! Sorry...
I don't know why, but new version drafts don't have a version field, so it fails