gbif-api
gbif-api copied to clipboard
method for easily updating/removing eraseAfter
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
}'