![](https://secure.gravatar.com/avatar/0bb57d42631107c18266dbcce9d2ff18.jpg?s=120&d=mm&r=g)
Hello,
We have a number of datasets we'd like to publish to GBIF directly through the registry APIs, bypassing our IPT completely. I've been looking through the documentation, but got stuck trying to figure out how to authenticate against the registry API. I suppose the organization name/password pairs used in the IPT might come into play at some point, but this isn't obvious from the documentation..? Or maybe my own account needs to be authorized to access the registry?
Would love to get some input on this, and if anyone else is doing something similar code samples would be much appreciated!
Thanks, Christian Svindseth GBIF Norway
![](https://secure.gravatar.com/avatar/3948e25d5734499757aed5ecd983d723.jpg?s=120&d=mm&r=g)
Hi Christian,
You need to have the editor role in the GBIF user registry, and be associated with the institution under which the data is going to be published.
I have done that and you should be able to publish using the API by posting your user name and password along with the request.
At this point I need to know which publishers you would like to have editor rights for.
A little warning: Please be aware that publishing with the API is a much more fragile process than using the IPT. We have previously had organizations getting entangled in the API publication process, so be careful. I suggest publishing against the gbif-uat.org test site to begin with.
You have been registered as editor with the user name 'chrissvi' and the account should work soon.
Here is an example using CURL in the Cygwin console:
[cid:image001.jpg@01D314F5.5B7D55C0]
The last line next to the red arrow is the return value after creating a dataset. This is the dataset UUID.
I also have some python code for doing these things.
Let me know if you need any help down the line.
Best,
Jan
-----Original Message----- From: API-users [mailto:api-users-bounces@lists.gbif.org] On Behalf Of Christian Svindseth Sent: 14. august 2017 02:00 To: api-users@lists.gbif.org Subject: [API-users] Registry API and authentication
Hello,
We have a number of datasets we'd like to publish to GBIF directly through the registry APIs, bypassing our IPT completely. I've been looking through the documentation, but got stuck trying to figure out how to authenticate against the registry API. I suppose the organization name/password pairs used in the IPT might come into play at some point, but this isn't obvious from the documentation..? Or maybe my own account needs to be authorized to access the registry?
Would love to get some input on this, and if anyone else is doing something similar code samples would be much appreciated!
Thanks,
Christian Svindseth
GBIF Norway
_______________________________________________
API-users mailing list
API-users@lists.gbif.orgmailto:API-users@lists.gbif.org
participants (2)
-
Christian Svindseth
-
Jan Legind