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

API: allow file restriction through API #3873

Closed
mdmADA opened this issue Jun 1, 2017 · 4 comments
Closed

API: allow file restriction through API #3873

mdmADA opened this issue Jun 1, 2017 · 4 comments
Assignees
Labels

Comments

@mdmADA
Copy link
Contributor

mdmADA commented Jun 1, 2017

The new Native API call in Dataverse 4.6.1 to add datafiles to a dataset is very handy but it would be even handier if the file could also be set to restricted (or not) through the call.

POST http://$SERVER/api/datasets/$id/add?key=$apiKey

As Phil indicated after my initial post, providing an API call that can restrict a given file after it has been uploaded would also be helpful.

Thanks!

@pdurbin
Copy link
Member

pdurbin commented Jun 1, 2017

@mdmADA I'm so glad to hear this suggestion from a user that I'm going to close the equivalent issue I opened at #2497.

I would say that instead of limiting this functionality to just "add", one should be able to add first and then decide to restrict later (just like in the GUI) before publishing. So, if you want to tweak the title of this issue a bit to reflect this broader scope, please go ahead! 😄

@mdmADA
Copy link
Contributor Author

mdmADA commented Jun 2, 2017

Sorry - I should have searched for the issue first before posting my own version - overzealous I guess!

@mdmADA mdmADA changed the title DV 4.6.1 Native API - new add datafile API call would be great if restricted could be set too DV 4.6.1 Native API - allow file restriction through API Jun 2, 2017
@pdurbin pdurbin changed the title DV 4.6.1 Native API - allow file restriction through API API: allow file restriction through API Jun 2, 2017
@ferrys ferrys self-assigned this Jun 9, 2017
@djbrooke
Copy link
Contributor

This is being worked on as part of #3776. Thanks @ferrys! I'm going to close this out as a separate issue so that we can track it in one place.

@pdurbin
Copy link
Member

pdurbin commented May 4, 2018

#4645 is about wanting to be able to tell if a file is restricted or not via API. This was delivered in fa3ca3f and perhaps other commits in pull request #3967 which landed in 4.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants