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

method for easily updating/removing eraseAfter #142

Open
dnoesgaard opened this issue Aug 27, 2024 · 0 comments
Open

method for easily updating/removing eraseAfter #142

dnoesgaard opened this issue Aug 27, 2024 · 0 comments

Comments

@dnoesgaard
Copy link
Member

Currently, the only method for ensuring that a download isn't automatically erased is by PUTting the whole download metadata. I'm not sure if updating most of these values even makes sense or should be allowed, but it would be convenient to have a method to simply update/remove certain values, e.g., using PATCH:

curl --location --request PATCH 'https://api.gbif.org/v1/occurrence/download/xxx-yyy' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic xxx' \
--data '{
    "eraseAfter": null
}'
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

1 participant