gbif-api icon indicating copy to clipboard operation
gbif-api copied to clipboard

method for easily updating/removing eraseAfter

Open dnoesgaard opened this issue 1 year ago • 0 comments

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
}'

dnoesgaard avatar Aug 27 '24 07:08 dnoesgaard