Hi Bart,
Did you authenticate your request?
Peter
> ______________________________
On 28 March 2017 at 13:25, Bart Aelterman <bart.aelterman@gmail.com> wrote:
> Hi all,
>
> I am trying to create a downloads file using the GBIF Occurrence Download
> API, but I'm not getting the expected result. I want to pass in a dataset
> key from which I want all occurrences.
>
> The predicate I defined is this one:
>
> {
> "creator": "bartaelterman",
> "notification_address": ["bart.aelterman@gmail.com"],
> "predicate": {
> "value": "7d5a76b9-819f-4fb8-aab0-664d4089aa54",
> "key": "DATASET_KEY",
> "type": "equals"
> }
> }
>
> I've also set the following headers:
>
> Content-Type:'application/json,
> Accept: application/json
>
> Yet, I get a 500 response from the API. Am I doing something wrong in my
> predicate definition?
>
> Thanks,
>
> Bart
>
>
_________________
> API-users mailing list
> API-users@lists.gbif.org
> https://lists.gbif.org/mailman/listinfo/api-users
>