Patrick Giraudoux

Results 14 comments of Patrick Giraudoux

Same issue: permission denied with a 401 error with the following script however following [https://developers.zenodo.org/#update](https://developers.zenodo.org/#update) instructions. Of course, the token created has action and write permission (I am on Windows...

Complement: requests.get works fine too. This indicates that the way the Zenodo server handles the token ( error 401) when passed through requests.put according to the model command has some...

Thanks for your response. I tried to replicate your example step by step. One point is that I cannot have a token specific to the sandbox, so I am obliged...

Le 09/08/2022 à 16:12, Pablo Panero a écrit : > > @pgiraudoux Regading the tokens, you > can obtain the tokens for the Zenodo sandbox exactly the same way you...

@ppanero Dear Pablo, I have a (hopefully) last question. Now, requests.put works fine on records that have been just created and are not published yet (e.g. the example above). My...

@ppanero Ups ! Indeed. I get: ```py url = f"https://zenodo.org/api/deposit/depositions/6905506?access_token={ACCESS_TOKEN}" data = { "metadata": { "keywords":['Accipiter badius', 'Amadina fasciata'], } } r = requests.put(url, data=json.dumps(data), headers=headers) r.json() >>> {'status': 400,...

Wonder whether the required fields 'metadata.upload_type', 'metadata.description', 'metadata.title' are just the mandatory fields already written but I do not want to overwrite... In this case I hardly see a solution...

At least, by trials and errors in the sandbox, I found a way to manage with entering a large number of keywords in a Zenodo record. The principle is quite...

@ppanero Thanks Pablo. Benefiting from this experience I have posted the script that went through for me this morning, for newbies like me there: [https://github.com/zenodo/zenodo/issues/2367#issuecomment-1214843416](https://github.com/zenodo/zenodo/issues/2367#issuecomment-1214843416). Feel free to comment/correct/suggest there...

Dear Pablo, I have a (hopefully) last question. Now, requests.put works fine on records that have been just created and are not published yet (e.g. the example above). My ultimate...