[API-users] Dataset registration change in API v1
Markus Döring
mdoering at gbif.org
Wed Jul 23 10:29:50 CEST 2014
Hi all,
Pensoft has discovered an issue when migrating to the v1 API to programmatically register new datasets.
The dataset property "owningOrganizationKey" is now called "publishingOrganizationKey" and still posting the owningOrganizationKey will result in an exception.
Please update your registration code to use publishingOrganizationKey instead. For example a simple json post could look like this:
curl -i --user USERNAME:PASSWORD -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"installationKey":"d5b61ace-f25c-43bd-9dd0-03486850f90b","publishingOrganizationKey":"750a8724-fa66-4c27-b645-bd58ac5ee010","title":"Saproxylic beetles of the Po plain woodlands, Italy","type":"OCCURRENCE"}' http://api.gbif.org/v1/dataset
If you also want to start to automatically register new datasets please get in touch with us and we will setup the right permissions for your GBIF account
Thanks to Pensoft for spotting the problem!
best,
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gbif.org/pipermail/api-users/attachments/20140723/75798f63/attachment.html
More information about the API-users
mailing list