Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native API: publish dataset endpoint doesn't support :persistentId #3547

Closed
pameyer opened this issue Dec 21, 2016 · 4 comments
Closed

Native API: publish dataset endpoint doesn't support :persistentId #3547

pameyer opened this issue Dec 21, 2016 · 4 comments
Assignees

Comments

@pameyer
Copy link
Contributor

pameyer commented Dec 21, 2016

Docs (http://guides.dataverse.org/en/latest/api/native-api.html) suggest that calls to
http://$SERVER/api/datasets/:persistentId/actions/:publish?type=minor&persistentId=doi:$DOIwould work the same way as calls to "http://$SERVER/api/datasets/$id/actions/:publish?type=$type". Instead, it returns 400/{"status":"ERROR","message":"Bad dataset id. Please provide a number."}

And another vote for fixing #3483 and #2431 (either by updating the docs, or updating the API).

@pdurbin pdurbin assigned pdurbin and unassigned pdurbin Dec 22, 2016
@pdurbin
Copy link
Member

pdurbin commented Dec 22, 2016

@pameyer good catch. It looks like was not fixed in #1837 as I expected. I'm pulling this into Development at https://waffle.io/IQSS/dataverse and plan to look at #2431 and #3483 while I'm in there.

@pdurbin
Copy link
Member

pdurbin commented Dec 22, 2016

I'm going to look at #2461 as well.

@pdurbin
Copy link
Member

pdurbin commented Dec 22, 2016

Fixed in pull request #3550. Passing to Code Review at https://waffle.io/IQSS/dataverse

@kcondon
Copy link
Contributor

kcondon commented Jan 13, 2017

OK, works but in curl you need to put quotes around the URL for this particular call. Closing.

@kcondon kcondon closed this as completed Jan 13, 2017
@kcondon kcondon self-assigned this Jan 13, 2017
kcondon added a commit that referenced this issue Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants