I’m trying to edit the publications dates for a journal’s back issues (born-print journal, the publication dates currently show the ingest date instead of the original publication date). However, I can’t get the publication dates to update and save.
Right now I’m just working on a single article as proof of concept before running a batch operation.
The workflow I’m using is:
Here’s the Python code I’m using for the respective steps:
requests.put(unpub_endpoint,params={'apiToken':key})
requests.put(edit_endpoint,params={'apiToken':key,'datePublished':'1967-06-02'})
requests.put(pub_endpoint,params={'apiToken':key})
I get 200 codes in response to each of those queries. I’ve triple-checked the submission and publication IDs in the URL path. Using the web-based dashboard, the Activity Log for the submission shows that the submission was unpublished, that the metadata was updated, and that the submission was published. However, the publication date still shows “2017-05-03.”
Am I using the API incorrectly, or is this a problem with the API? I’d really rather not create a new version of each article since it’s a metadata problem and not an article version problem. I’m also concerned about having a second version of the article published with a publication date 60 years prior to the first, and whatever unforseen consequences that may have.
Thanks in advance!