Stream: community

Topic: โœ” demo.dataverse.org API testing


view this post on Zulip kuhlaid (Mar 12 2025 at 14:32):

I am trying to make an API call to demo.dataverse.org to create a collection but receive an error User @xxx is not permitted to perform requested action. It would be nice if https://demo.dataverse.org supported testing of the API. I'm trying to test a public API curation framework (https://github.com/kuhlaid/dv-api-test) that simplifies common Dataverse API actions and would like the public to be able to test easily. I can personally use the https://demo-dataverse.rdmc.unc.edu domain but am not sure if the public can use it to test API calls.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2025 at 14:37):

Huh, it says "Anyone with a Dataverse account can add sub dataverses and datasets".

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2025 at 14:37):

Screenshot 2025-03-12 at 10.37.15โ€ฏAM.png

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2025 at 14:38):

(As a side note, dv-api-test looks great! Please see also #community > recipes.)

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2025 at 14:39):

Are you trying to create a collection in the root collection?

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2025 at 14:39):

It should work! :sweat_smile:

view this post on Zulip kuhlaid (Mar 12 2025 at 14:55):

Hi @Philip Durbin โ˜€๏ธ , yes I'm trying to create a collection at the root when I receive the error. You are welcome to spin up the Notebook in MyBinder and test it yourself.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2025 at 15:16):

Can you please try changing...

"_cc__strDvApi_PARENT_COLLECTION": "root",

... to...

"_cc__strDvApi_PARENT_COLLECTION": ":root",

...?

view this post on Zulip kuhlaid (Mar 12 2025 at 15:31):

Done. That fixed the issue, thank you.

view this post on Zulip Notification Bot (Mar 12 2025 at 15:31):

kuhlaid has marked this topic as resolved.


Last updated: Nov 01 2025 at 14:11 UTC