MENU navbar-image

Introduction

The EU Pollinator Hub is an integrative tool to centralise, analyse and visualise bee and pollinator-related data based on principles of collaboration and conservation.
Bees and other insect pollinators are becoming increasingly relevant in the public debate. European authorities now recognise the environmental risks pollinators face and the need for institutional action. Given their importance for ecosystems and their role in our food security, the commitment to protect pollinators has been growing, and data is essential to fulfilling this commitment.
Different agents and stakeholders are continually collecting data related to the status of pollinators, such as researchers, environmental, health or agricultural authorities, national beekeeping or farming associations. The EU Pollinator Hub has been conceived to valorise their efforts and improve collaborations based on data-sharing. At the same time, the EU Pollinator Hub is constantly developing to provide access to valuable data from different consenting sources. In a collaborative spirit, the EU Pollinator Hub centralises and presents this data, also working as a communicative tool for the benefit of bees and pollinators in general.
The EU Pollinator Hub is coordinated by BeeLife European Beekeeping Coordination, an NGO focused on the protection of pollinators and biodiversity in Europe. BeeLife has initialised the first stages of this integrative platform within the Internet of Bees (IoBee) project.
The EU Pollinator Hub is also an attempt to materialise the conclusions of the EU Bee Partnership regarding the need for further bee-data integration. The partnership is a stakeholder platform dynamised by the European Food Safety Authority that includes representatives from the beekeeping and farming sectors, NGOs, veterinarians, academia, industry, producers, and scientists.
This new tool also includes developments from the Apimondia working group on the standardisation of data on bees - Bee XML. Bee XML is the ongoing measure to reach a new model for sharing bee data, and the EU Pollinator Hub aims at implementing these standards.

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking API Tokens.

Entities

This route will allow modifications to the meta-data for the Entities. It includes basic information like name, description and contact information. It directly “owns” datasets. It is identified by UID which is created during the data entity creation procedure.

Show Entities

requires authentication

Display a listing of Entities, the User has access to.

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/entities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/entities';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/entities"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/entities'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
 "data": [
     {
         "name": "EU Pollinator Hub",
         "uid": "euph",
         "contact": [
             {
                 "type": "url",
                 "value": "https://pollinatorhub.eu"
             },
             {
                 "type": "email",
                 "value": "hello@pollinatorhub.eu"
             }
         ],
         "abbreviation": "EUPH",
         "registry_number": "N/A",
         "description": "The EU Pollinator Hub is a data hub related to pollinators, which is provided by the European Food Safety Authority (EFSA).",
         "address": "N/A",
         "country": {
             "iso-3166-country-name": "the Kingdom of Belgium",
             "iso-3166-numeric-country-code": "56",
             "iso-3166-country-name-short-lc": "Belgium",
             "iso-3166-alpha-2-country": "BE",
             "iso-3166-alpha-3-country": "BEL"
         },
         "user_id": 1,
         "created_at": "2023-07-04T11:24:58.000000Z",
         "updated_at": "2023-07-04T11:25:00.000000Z"
     },
}
 

Example response (400, Bad Request):



 

Example response (401, Unauthorized):



 

Example response (403, Forbidden):



 

Example response (500, Internal server error):



 

Request   

GET api/v1/entities

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

data   string[]   

A list of entities available to the User.

*   object   
name   string   

A descriptive name of the entity.

slug   string   

The URL used to access the entity

uid   string   

The unique identifier used to identify the entity within the platform.

contact   object[]   

A list of contact points for the entity.

type   string   

The type of the contact.

value   string   

The actual value of the contact, for example email address, url or other.

abbreviation   string   

Abbreviation or short name of the entity.

registry_number   string   

A public unique identifier used to identify a legal entity. Can be empty for private persons.

description   string   

A longer description about the entity. Uses Markdown for styling.

address   string   

Full address of the entity. Can be empty for private persons.

country   object   

Country the entity resides in.

iso-3166-country-name   string   

Full name of the country.

iso-3166-country-name-short-lc   string   

Short name, written in lower case letters, of the country.

iso-3166-numeric-country-code   string   

Numeric code of the country according to ISO-3166 standard.

iso-3166-alpha-2-country   string   

A two-letter code that represents a country name, recommended as general purpose code.

iso-3166-alpha-3-country   string   

A three-letter code that represents a country name.

user_id   integer   

Numeric identifier of a user.

type   string   

Type of the Entity.

personal_team   boolean   

This Entity represents the User.

created_at   string   

The date and time the entity was created.

updated_at   string   

The date and time the entity was last updated.

Create Entity

requires authentication

Store an Entity in storage.

Example request:
curl --request POST \
    "https://pollinator-hub/api/v1/entities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"European Food Safety Authority\",
    \"abbreviation\": \"EFSA\",
    \"description\": \"No-example\",
    \"user_id\": 14,
    \"country_id\": \"IT\",
    \"type\": \"person\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/entities';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'European Food Safety Authority',
            'abbreviation' => 'EFSA',
            'description' => 'No-example',
            'user_id' => 14,
            'country_id' => 'IT',
            'type' => 'person',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/entities"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "European Food Safety Authority",
    "abbreviation": "EFSA",
    "description": "No-example",
    "user_id": 14,
    "country_id": "IT",
    "type": "person"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/entities'
payload = {
    "name": "European Food Safety Authority",
    "abbreviation": "EFSA",
    "description": "No-example",
    "user_id": 14,
    "country_id": "IT",
    "type": "person"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{}
 

Request   

POST api/v1/entities

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

A descriptive name of the entity. Must not be greater than 250 characters. Must be at least 8 characters. Example: European Food Safety Authority

abbreviation   string   

Abbreviation or short name of the entity. Must not be greater than 50 characters. Must be at least 3 characters. Example: EFSA

address   string  optional  

Full address of the entity. It is not required for private persons. This field is required unless registry_number is in null. Must not be greater than 15000000 characters. Must be at least 10 characters.

registry_number   string  optional  

A public unique identifier used to identify a legal entity. Can be empty for private persons. Must not be greater than 20 characters. Must be at least 5 characters.

description   string   

A longer description about the entity. Accepts Markdown for styling. Must not be greater than 16777215 characters. Must be at least 10 characters. Example: No-example

user_id   integer   

Example: 14

country_id   string   

A two-letter code that represents a country name, recommended as general purpose code. Must be 2 characters. Example: IT

Must be one of:
  • AQ
  • BG
  • MM
  • BI
  • BY
  • KH
  • DZ
  • CM
  • CA
  • CV
  • KY
  • CF
  • LK
  • TD
  • CL
  • CN
  • TW
  • AS
  • CX
  • CC
  • CO
  • KM
  • YT
  • CG
  • CD
  • CK
  • CR
  • HR
  • CU
  • CY
  • AD
  • CZ
  • BJ
  • DK
  • DM
  • DO
  • EC
  • SV
  • GQ
  • ET
  • ER
  • EE
  • FO
  • FK
  • GS
  • AO
  • FJ
  • FI
  • AX
  • FR
  • GF
  • PF
  • TF
  • DJ
  • GA
  • GE
  • GM
  • PS
  • DE
  • AG
  • GH
  • GI
  • KI
  • GR
  • GL
  • GD
  • AZ
  • GP
  • GU
  • AR
  • GT
  • GN
  • GY
  • HT
  • HM
  • VA
  • HN
  • HK
  • HU
  • IS
  • IN
  • AU
  • ID
  • IR
  • IQ
  • IE
  • IL
  • IT
  • CI
  • JM
  • JP
  • KZ
  • AF
  • AT
  • JO
  • KE
  • KP
  • KR
  • KW
  • KG
  • LA
  • LB
  • LS
  • LV
  • LR
  • LY
  • LI
  • BS
  • LT
  • LU
  • MO
  • MG
  • MW
  • MY
  • MV
  • ML
  • MT
  • MQ
  • MR
  • BH
  • MU
  • MX
  • MC
  • MN
  • MD
  • ME
  • BD
  • MS
  • MA
  • MZ
  • AM
  • OM
  • NA
  • BB
  • NR
  • NP
  • NL
  • CW
  • AW
  • SX
  • BQ
  • PDM 1.0
  • VU
  • NZ
  • NI
  • BE
  • NE
  • NG
  • NU
  • NF
  • NO
  • MP
  • UM
  • FM
  • MH
  • PW
  • PK
  • PA
  • PG
  • BM
  • PY
  • PE
  • PH
  • PN
  • PL
  • PT
  • GW
  • TL
  • PR
  • QA
  • RE
  • BT
  • RO
  • RU
  • RW
  • BL
  • SH
  • KN
  • AI
  • LC
  • MF
  • PM
  • VC
  • SM
  • ST
  • BO
  • SA
  • SN
  • RS
  • SC
  • SL
  • BA
  • SG
  • SK
  • VN
  • SI
  • SO
  • ZA
  • ZW
  • BW
  • ES
  • SS
  • SD
  • EH
  • BV
  • SR
  • SJ
  • SZ
  • SE
  • CH
  • BR
  • SY
  • TJ
  • TH
  • TG
  • TK
  • TO
  • TT
  • AE
  • TN
  • TR
  • TM
  • TC
  • TV
  • AL
  • UG
  • UA
  • MK
  • EG
  • GB
  • GG
  • JE
  • IM
  • TZ
  • BZ
  • US
  • VI
  • BF
  • UY
  • IO
  • UZ
  • VE
  • WF
  • WS
  • YE
  • ZM
  • SB
  • VG
  • BN
  • BQ
  • BY
  • CT
  • CS
  • DY
  • NQ
  • AI
  • FQ
  • DD
  • GE
  • JT
  • MI
  • NH
  • PC
  • PZ
  • SK
  • RH
  • PU
  • HV
  • VD
  • WK
  • YD
  • AN
  • BU
  • CS
  • NT
  • TP
  • YU
  • ZR
  • AC
  • CP
  • CQ
  • DG
  • EA
  • EU
  • EZ
  • FX
  • IC
  • SU
  • TA
  • UK
  • UN
contact   object  optional  

A list of contact points for the entity.

type   string   

Example: person

Must be one of:
  • person
  • legal-entity

Show Entity

requires authentication

Display the specified Entity.

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/entities/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/entities/3';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/entities/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/entities/3'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "name": "EU Pollinator Hub",
    "uid": "euph",
    "contact": [
        {
            "type": "url",
            "value": "https://pollinatorhub.eu"
        },
        {
            "type": "email",
            "value": "hello@pollinatorhub.eu"
        }
    ],
    "abbreviation": "EUPH",
    "registry_number": "N/A",
    "description": "The EU Pollinator Hub is a data hub related to pollinators, which is provided by the European Food Safety Authority (EFSA).",
    "address": "N/A",
    "country": {
        "iso-3166-country-name": "the Kingdom of Belgium",
        "iso-3166-numeric-country-code": "56",
        "iso-3166-country-name-short-lc": "Belgium",
        "iso-3166-alpha-2-country": "BE",
        "iso-3166-alpha-3-country": "BEL"
    },
    "user_id": 1,
    "created_at": "2023-07-04T11:24:58.000000Z",
    "updated_at": "2023-07-04T11:25:00.000000Z"
}
 

Request   

GET api/v1/entities/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The unique identifier used to identify the Entity within the platform. Example: 3

Response

Response Fields

data   object   
name   string   

A descriptive name of the entity.

slug   string   

The URL used to access the entity

uid   string   

The unique identifier used to identify the Entity within the platform.

contact   object[]   

A list of contact points for the entity.

type   string   

The type of the contact.

value   string   

The actual value of the contact, for example email address, url or other.

abbreviation   string   

Abbreviation or short name of the entity.

registry_number   string   

A public unique identifier used to identify a legal entity. Can be empty for private persons.

description   string   

A longer description about the entity. Uses Markdown for styling.

address   string   

Full address of the entity. Can be empty for private persons.

country   object   

Country the entity resides in.

iso-3166-country-name   string   

Full name of the country.

iso-3166-country-name-short-lc   string   

Short name, written in lower case letters, of the country.

iso-3166-numeric-country-code   string   

Numeric code of the country according to ISO-3166 standard.

iso-3166-alpha-2-country   string   

A two-letter code that represents a country name, recommended as general purpose code.

iso-3166-alpha-3-country   string   

A three-letter code that represents a country name.

user_id   integer   

Numeric identifier of a user.

type   string   

Type of the Entity.

personal_team   boolean   

This Entity represents the User.

created_at   string   

The date and time the entity was created.

updated_at   string   

The date and time the entity was last updated.

Update Entity

requires authentication

Update the specified Entity in storage.

Example request:
curl --request PUT \
    "https://pollinator-hub/api/v1/entities/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"European Food Safety Authority\",
    \"abbreviation\": \"EFSA\",
    \"description\": \"No-example\",
    \"user_id\": 0,
    \"country_id\": \"IT\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/entities/3';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'European Food Safety Authority',
            'abbreviation' => 'EFSA',
            'description' => 'No-example',
            'user_id' => 0,
            'country_id' => 'IT',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/entities/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "European Food Safety Authority",
    "abbreviation": "EFSA",
    "description": "No-example",
    "user_id": 0,
    "country_id": "IT"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/entities/3'
payload = {
    "name": "European Food Safety Authority",
    "abbreviation": "EFSA",
    "description": "No-example",
    "user_id": 0,
    "country_id": "IT"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{}
 

Request   

PUT api/v1/entities/{id}

PATCH api/v1/entities/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the entity. Example: 3

uid   string   

The unique identifier used to identify the Entity within the platform. Example: euph

Body Parameters

name   string   

A descriptive name of the entity. Must not be greater than 250 characters. Must be at least 8 characters. Example: European Food Safety Authority

abbreviation   string   

Abbreviation or short name of the entity. Must not be greater than 50 characters. Must be at least 3 characters. Example: EFSA

address   string  optional  

Full address of the entity. It is not required for private persons. This field is required unless registry_number is in null. Must not be greater than 16777215 characters. Must be at least 10 characters.

registry_number   string  optional  

A public unique identifier used to identify a legal entity. Can be empty for private persons. Must not be greater than 20 characters. Must be at least 5 characters.

description   string   

A longer description about the entity. Accepts Markdown for styling. Must not be greater than 15000000 characters. Must be at least 10 characters. Example: No-example

user_id   integer   

Numeric identifier of a User. Example: 0

country_id   string   

A two-letter code that represents a country name, recommended as general purpose code. Must be 2 characters. Example: IT

Must be one of:
  • AQ
  • BG
  • MM
  • BI
  • BY
  • KH
  • DZ
  • CM
  • CA
  • CV
  • KY
  • CF
  • LK
  • TD
  • CL
  • CN
  • TW
  • AS
  • CX
  • CC
  • CO
  • KM
  • YT
  • CG
  • CD
  • CK
  • CR
  • HR
  • CU
  • CY
  • AD
  • CZ
  • BJ
  • DK
  • DM
  • DO
  • EC
  • SV
  • GQ
  • ET
  • ER
  • EE
  • FO
  • FK
  • GS
  • AO
  • FJ
  • FI
  • AX
  • FR
  • GF
  • PF
  • TF
  • DJ
  • GA
  • GE
  • GM
  • PS
  • DE
  • AG
  • GH
  • GI
  • KI
  • GR
  • GL
  • GD
  • AZ
  • GP
  • GU
  • AR
  • GT
  • GN
  • GY
  • HT
  • HM
  • VA
  • HN
  • HK
  • HU
  • IS
  • IN
  • AU
  • ID
  • IR
  • IQ
  • IE
  • IL
  • IT
  • CI
  • JM
  • JP
  • KZ
  • AF
  • AT
  • JO
  • KE
  • KP
  • KR
  • KW
  • KG
  • LA
  • LB
  • LS
  • LV
  • LR
  • LY
  • LI
  • BS
  • LT
  • LU
  • MO
  • MG
  • MW
  • MY
  • MV
  • ML
  • MT
  • MQ
  • MR
  • BH
  • MU
  • MX
  • MC
  • MN
  • MD
  • ME
  • BD
  • MS
  • MA
  • MZ
  • AM
  • OM
  • NA
  • BB
  • NR
  • NP
  • NL
  • CW
  • AW
  • SX
  • BQ
  • PDM 1.0
  • VU
  • NZ
  • NI
  • BE
  • NE
  • NG
  • NU
  • NF
  • NO
  • MP
  • UM
  • FM
  • MH
  • PW
  • PK
  • PA
  • PG
  • BM
  • PY
  • PE
  • PH
  • PN
  • PL
  • PT
  • GW
  • TL
  • PR
  • QA
  • RE
  • BT
  • RO
  • RU
  • RW
  • BL
  • SH
  • KN
  • AI
  • LC
  • MF
  • PM
  • VC
  • SM
  • ST
  • BO
  • SA
  • SN
  • RS
  • SC
  • SL
  • BA
  • SG
  • SK
  • VN
  • SI
  • SO
  • ZA
  • ZW
  • BW
  • ES
  • SS
  • SD
  • EH
  • BV
  • SR
  • SJ
  • SZ
  • SE
  • CH
  • BR
  • SY
  • TJ
  • TH
  • TG
  • TK
  • TO
  • TT
  • AE
  • TN
  • TR
  • TM
  • TC
  • TV
  • AL
  • UG
  • UA
  • MK
  • EG
  • GB
  • GG
  • JE
  • IM
  • TZ
  • BZ
  • US
  • VI
  • BF
  • UY
  • IO
  • UZ
  • VE
  • WF
  • WS
  • YE
  • ZM
  • SB
  • VG
  • BN
  • BQ
  • BY
  • CT
  • CS
  • DY
  • NQ
  • AI
  • FQ
  • DD
  • GE
  • JT
  • MI
  • NH
  • PC
  • PZ
  • SK
  • RH
  • PU
  • HV
  • VD
  • WK
  • YD
  • AN
  • BU
  • CS
  • NT
  • TP
  • YU
  • ZR
  • AC
  • CP
  • CQ
  • DG
  • EA
  • EU
  • EZ
  • FX
  • IC
  • SU
  • TA
  • UK
  • UN
contact   string[]  optional  

A list of contact points for the entity.

type   string   

The type of the contact. Should be one of: email, url, phone, address, url-facebook, url-twitter, url-linkedin, url-youtube, url-vimeo. Example: email

value   string   

The actual value of the contact, for example email address, url or other. Example: example@pollinatorhub.eu

Delete Entity

requires authentication

Remove the specified Entity from storage.

Example request:
curl --request DELETE \
    "https://pollinator-hub/api/v1/entities/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/entities/3';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/entities/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/entities/3'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (204):

Empty response
 

Request   

DELETE api/v1/entities/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the entity. Example: 3

uid   string   

The unique identifier used to identify the Entity within the platform. Example: euph

Datasets

This route will allow modifications to the meta-data for the Datasets. It includes basic information like name, description and contact information. It is owned by one or more entities. It directly owns one or more Dataset Parts. It is identified by UID which is created during the data entity creation procedure.

Show Datasets

requires authentication

Display a listing of the Datasets, the User has access to..

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/datasets?entity=euph" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'entity' => 'euph',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets"
);

const params = {
    "entity": "euph",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets'
params = {
  'entity': 'euph',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
 "data": [
      {
          "entities": [
              "euph"
          ],
          "name": "EUPH Reference dataset containing licences",
          "long_name": "EUPH Reference dataset containing licences",
          "number": "000026",
          "slug": "licences",
          "uid": "licences",
          "description": "The dataset contains all licences for data hosted on the EUPH.",
          "status": "publish",
          "public": true,
          "licence": "cc-by",
          "published_at": null
      },
 ]
}
 

Example response (400, Bad Request):



 

Example response (401, Unauthorized):



 

Example response (403, Forbidden):



 

Example response (500, Internal server error):



 

Request   

GET api/v1/datasets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

entity   string  optional  

Filter datasets by Entity uid. Example: euph

Response

Response Fields

data   object[]   

A list of Datasets available to the User.example email address, url or other.

*   object   
name   string   

The actual name of the dataset.

long_name   string   

The long version of the name of the dataset.

number   string   

Number to identify the dataset. The number will be automatically generated when the dataset is created.

slug   string   

The URL used to access the entity

uid   string   

The unique identifier used to identify the entity within the platform.

description   string   

Longer description about the dataset. Uses Markdown for styling.

entities   string[]   

Array containing the uid of the entities of this dataset.

*   string   

The Uid of the entity

contact   object[]   

A list of contact points for the entity.

type   string   

The type of the contact.

value   string   

The actual value of the contact, for

status   string   

The status of the dataset. The list of available status are the following: draft, pending, reject, reviewing, pending-peer-rev, peer-reviewing, publish, publish-with-pw, trash, hidden

public   boolean   

1 means that the data of this dataset are public.

licence   string|null   

The uid of the licence of this entity.

published_at   string|null   

The date and time the dataset was published.

created_at   string   

The date and time the dataset was created.

updated_at   string   

The date and time the dataset was last updated.

Create Dataset

requires authentication

Store a Dataset in storage.

Example request:
curl --request POST \
    "https://pollinator-hub/api/v1/datasets" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"entities\": [
        \"euph\"
    ],
    \"name\": \"ISO 3166-1:2020\",
    \"long_name\": \"vlxmjnulygdmmcrpskonlqbautjblunmehwjlgrheflzlpyxyamfphrenquknbusknrgndtgawvvzdtp\",
    \"description\": \"Qui est debitis quae sit unde quia.\",
    \"status\": \"pending\",
    \"public\": true,
    \"licence\": \"cc-by\",
    \"published_at\": \"2023-07-04T11:24:58.000000Z\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'entities' => [
                'euph',
            ],
            'name' => 'ISO 3166-1:2020',
            'long_name' => 'vlxmjnulygdmmcrpskonlqbautjblunmehwjlgrheflzlpyxyamfphrenquknbusknrgndtgawvvzdtp',
            'description' => 'Qui est debitis quae sit unde quia.',
            'status' => 'pending',
            'public' => true,
            'licence' => 'cc-by',
            'published_at' => '2023-07-04T11:24:58.000000Z',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "entities": [
        "euph"
    ],
    "name": "ISO 3166-1:2020",
    "long_name": "vlxmjnulygdmmcrpskonlqbautjblunmehwjlgrheflzlpyxyamfphrenquknbusknrgndtgawvvzdtp",
    "description": "Qui est debitis quae sit unde quia.",
    "status": "pending",
    "public": true,
    "licence": "cc-by",
    "published_at": "2023-07-04T11:24:58.000000Z"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets'
payload = {
    "entities": [
        "euph"
    ],
    "name": "ISO 3166-1:2020",
    "long_name": "vlxmjnulygdmmcrpskonlqbautjblunmehwjlgrheflzlpyxyamfphrenquknbusknrgndtgawvvzdtp",
    "description": "Qui est debitis quae sit unde quia.",
    "status": "pending",
    "public": true,
    "licence": "cc-by",
    "published_at": "2023-07-04T11:24:58.000000Z"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{}
 

Request   

POST api/v1/datasets

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

entities   string[]   

The UID of of an related Entity.

name   string   

The name of the Dataset Part. Must not be greater than 100 characters. Must be at least 3 characters. Example: ISO 3166-1:2020

long_name   string   

The long version of the name of the dataset. Must not be greater than 256 characters. Must be at least 8 characters. Example: vlxmjnulygdmmcrpskonlqbautjblunmehwjlgrheflzlpyxyamfphrenquknbusknrgndtgawvvzdtp

description   string   

A longer description about the Dataset Part. Accepts Markdown for styling. Must not be greater than 15000000 characters. Must be at least 10 characters. Example: Qui est debitis quae sit unde quia.

status   string   

The status of the dataset. Example: pending

Must be one of:
  • draft
  • pending
public   boolean   

Setting this Dataset Part public attribute to true will make accessible to the public while setting it to false will make it only be used for processing. Example: true

licence   string   

The UID of the licence of this entity. Example: cc-by

Must be one of:
  • cc-by-4-0
  • cc-by-sa-4-0
  • cc-by-nd-4-0
  • cc-by-nc-4-0
  • cc-by-nc-sa-4-0
  • cc-by-nc-nd-4-0
  • cc0-1-0
  • eurostat
  • statcube
  • table-specific-licence
published_at   string   

The date this Dataset Part can be published on the platform. A null value is allowed, having no or unknown publishing date. Must be a valid date. Example: 2023-07-04T11:24:58.000000Z

Show Dataset

requires authentication

Display the specified Dataset.

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/datasets/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
 

{
    "data": {
        "name": "EUPH",
        "long_name": "EUPH",
        "number": "000001",
        "uid": "EUPHA1.0.0",
        "description": "This dataset contains the basic data created for the platform to function.",
        "entities": [
            "euph"
        ],
        "contact": [],
        "licence": "euph",
        "published_at": null,
        "created_at": "2023-09-01T08:53:36.000000Z",
        "updated_at": "2024-01-26T17:32:58.000000Z"
    }
}
 

Request   

GET api/v1/datasets/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the dataset. Example: 1

uid   string   

The unique identifier used to identify the Dataset within the platform. Example: countries

Response

Response Fields

data   object   
name   string   

The actual name of the dataset.

long_name   string   

The long version of the name of the dataset.

number   string   

Number to identify the dataset. The number will be automatically generated when the dataset is created.

slug   string   

The URL used to access the entity

uid   string   

The unique identifier used to identify the entity within the platform.

description   string   

Longer description about the dataset. Uses Markdown for styling.

entities   string[]   

Array containing the uid of the entities of this dataset.

*   string   

The Uid of the entity

contact   object[]   

A list of contact points for the entity.

type   string   

The type of the contact.

value   string   

The actual value of the contact, for example email address, url or other.

status   string   

The status of the dataset. The list of available status are the following: draft, pending, reject, reviewing, pending-peer-rev, peer-reviewing, publish, publish-with-pw, trash, hidden

public   boolean   

1 means that the data of this dataset are public.

licence   string|null   

The uid of the licence of this entity.

published_at   string|null   

The date and time the dataset was published.

created_at   string   

The date and time the dataset was created.

updated_at   string   

The date and time the dataset was last updated.

Update Dataset

requires authentication

Update the specified Dataset in storage.

Example request:
curl --request PUT \
    "https://pollinator-hub/api/v1/datasets/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"entities\": [
        \"euph\"
    ],
    \"name\": \"ISO 3166-1:2020\",
    \"long_name\": \"No-example\",
    \"description\": \"No-example\",
    \"status\": \"pending\",
    \"licence\": \"cc-by\",
    \"public\": true,
    \"published_at\": \"2023-07-04T11:24:58.000000Z\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'entities' => [
                'euph',
            ],
            'name' => 'ISO 3166-1:2020',
            'long_name' => 'No-example',
            'description' => 'No-example',
            'status' => 'pending',
            'licence' => 'cc-by',
            'public' => true,
            'published_at' => '2023-07-04T11:24:58.000000Z',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "entities": [
        "euph"
    ],
    "name": "ISO 3166-1:2020",
    "long_name": "No-example",
    "description": "No-example",
    "status": "pending",
    "licence": "cc-by",
    "public": true,
    "published_at": "2023-07-04T11:24:58.000000Z"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets/1'
payload = {
    "entities": [
        "euph"
    ],
    "name": "ISO 3166-1:2020",
    "long_name": "No-example",
    "description": "No-example",
    "status": "pending",
    "licence": "cc-by",
    "public": true,
    "published_at": "2023-07-04T11:24:58.000000Z"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{}
 

Request   

PUT api/v1/datasets/{id}

PATCH api/v1/datasets/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the dataset. Example: 1

uid   string   

The unique identifier used to identify the Dataset within the platform. Example: countries

Body Parameters

entities   string[]   

The UID of of an related Entity.

name   string   

The name of the Dataset Part. Must not be greater than 100 characters. Must be at least 3 characters. Example: ISO 3166-1:2020

long_name   string   

The long version of the name of the dataset. Must not be greater than 256 characters. Must be at least 8 characters. Example: No-example

description   string   

A longer description about the Dataset Part. Accepts Markdown for styling. Must not be greater than 15000000 characters. Must be at least 10 characters. Example: No-example

status   string   

The status of the dataset. Example: pending

Must be one of:
  • draft
  • pending
licence   string   

The UID of the licence of this entity. Example: cc-by

Must be one of:
  • cc-by-4-0
  • cc-by-sa-4-0
  • cc-by-nd-4-0
  • cc-by-nc-4-0
  • cc-by-nc-sa-4-0
  • cc-by-nc-nd-4-0
  • cc0-1-0
  • eurostat
  • statcube
  • table-specific-licence
public   boolean   

Setting this Dataset Part public attribute to true will make accessible to the public while setting it to false will make it only be used for processing. Example: true

published_at   string   

The date this Dataset Part can be published on the platform. A null value is allowed, having no or unknown publishing date. Must be a valid date. Example: 2023-07-04T11:24:58.000000Z

Delete Dataset

requires authentication

Remove the specified Dataset from storage.

Example request:
curl --request DELETE \
    "https://pollinator-hub/api/v1/datasets/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (204):

Empty response
 

Request   

DELETE api/v1/datasets/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the dataset. Example: 1

uid   string   

The unique identifier used to identify the Dataset within the platform. Example: countries

Dataset Parts

Show Dataset Parts

requires authentication

Display a listing of Dataset Parts, the User has access to.

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/datasets/1/parts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets/1/parts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets/1/parts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets/1/parts'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "data": [
        {
            "name": "ISO 3166-1:2020",
            "description": "File iso3166_1_2020.csv contains 291 records of countries included in the ISO standard 3166-1:2020...",
            "uid": "DTST1.PRTA1.0",
            "type": "file",
            "licence_id": "unlicenced",
            "created_at": "2023-07-04T11:24:58.000000Z",
            "updated_at": "2023-07-04T11:24:58.000000Z"
        }
    ]
}
 

Request   

GET api/v1/datasets/{dataset_id}/parts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

dataset_id   integer   

The ID of the dataset. Example: 1

dataset_uid   string   

The UID of the dataset to display related parts of.

Create Dataset Part.

requires authentication

Store a Dataset Part in storage.

Example request:
curl --request POST \
    "https://pollinator-hub/api/v1/datasets/1/parts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ISO 3166-1:2020\",
    \"description\": \"No-example\",
    \"type\": \"api\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/datasets/1/parts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'ISO 3166-1:2020',
            'description' => 'No-example',
            'type' => 'api',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/datasets/1/parts"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ISO 3166-1:2020",
    "description": "No-example",
    "type": "api"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/datasets/1/parts'
payload = {
    "name": "ISO 3166-1:2020",
    "description": "No-example",
    "type": "api"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
 

{
    "data": {
        "name": "ISO 3166-1:2020",
        "description": "No-example",
        "type": "api",
        "licence": null,
        "dataset_uid": "EUPHA1.0.0",
        "published_at": null,
        "created_at": "2024-05-17T13:22:36.000000Z",
        "updated_at": "2024-05-17T13:22:36.000000Z"
    }
}
 

Request   

POST api/v1/datasets/{dataset_id}/parts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

dataset_id   integer   

The ID of the dataset. Example: 1

Body Parameters

name   string   

The name of the Dataset Part. Must not be greater than 150 characters. Must be at least 8 characters. Example: ISO 3166-1:2020

description   string   

A longer description about the Dataset Part. Accepts Markdown for styling. Must not be greater than 15000000 characters. Must be at least 10 characters. Example: No-example

entities   string[]  optional  
type   string   

The type this Dataset Part represents. Use 'api' when uploading data via the API. The list of available types are: api ,remote ,file ,files. Example: api

Must be one of:
  • api
  • file
  • files
  • remote

Display the specified resource.

requires authentication

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/parts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/parts/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/parts/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/parts/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
 

{
    "data": {
        "name": "ISO 3166:2020",
        "description": "Data in this table was obtained from the International Organization for Standardization (ISO) Data, an independent, non-governmental international organization with a membership of 167 national standards bodies. It contains codes and names for the representation of names of countries and their subdivisions.",
        "type": "file",
        "licence": "euph",
        "dataset_uid": "CNTRS2.0.0",
        "published_at": null,
        "created_at": "2023-01-26T18:18:14.000000Z",
        "updated_at": "2024-01-26T17:32:58.000000Z"
    }
}
 

Request   

GET api/v1/parts/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The numeric identifier used to identify the Dataset Part within the platform. Example: 1

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "https://pollinator-hub/api/v1/parts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"entities\": [
        \"euph\"
    ],
    \"name\": \"ISO 3166-1:2020\",
    \"description\": \"No-example\",
    \"type\": \"api\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/parts/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'entities' => [
                'euph',
            ],
            'name' => 'ISO 3166-1:2020',
            'description' => 'No-example',
            'type' => 'api',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/parts/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "entities": [
        "euph"
    ],
    "name": "ISO 3166-1:2020",
    "description": "No-example",
    "type": "api"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/parts/1'
payload = {
    "entities": [
        "euph"
    ],
    "name": "ISO 3166-1:2020",
    "description": "No-example",
    "type": "api"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
content-type: text/html; charset=UTF-8
cache-control: no-cache, private
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
access-control-allow-origin: *
 


 

Request   

PUT api/v1/parts/{id}

PATCH api/v1/parts/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The numeric identifier used to identify the Dataset Part within the platform. Example: 1

Body Parameters

entities   string[]  optional  

The UID of of an related Entity.

name   string   

The name of the Dataset Part. Must not be greater than 150 characters. Must be at least 3 characters. Example: ISO 3166-1:2020

description   string   

A longer description about the Dataset Part. Accepts Markdown for styling. Must not be greater than 15000000 characters. Must be at least 10 characters. Example: No-example

type   string   

The type this Dataset Part represents. Use 'api' when uploading data via the API. The list of available types are: api ,remote ,file ,files. Example: api

Must be one of:
  • file
  • files
  • remote
  • api

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "https://pollinator-hub/api/v1/parts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/parts/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/parts/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/parts/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (204):

Empty response
 

Request   

DELETE api/v1/parts/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The numeric identifier used to identify the Dataset Part within the platform. Example: 1

Data

Show Data

requires authentication

Display a listing of all data related to this Dataset Part. Is paginated..

Example request:
curl --request GET \
    --get "https://pollinator-hub/api/v1/parts/1/data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/parts/1/data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/parts/1/data"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/parts/1/data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
     "records": [
         {
             "id": [
                   "ISO 3166-1"
             ],
             "timestamp": "2020",
             "data": [
                 {
                     "descriptors": "iso-3166-numeric-country-code",
                     "value": "10",
                     "origin": null,
                     "unit": null,
                 },
                 {
                     "descriptors": "iso-3166-country-name-short",
                     "value": "ANTARCTICA",
                     "origin": null,
                     "unit": null,
                 },
                 ...
             ]
         },
         ...
     ]
}
 

Request   

GET api/v1/parts/{part_id}/data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

part_id   integer   

The ID of the Dataset Part. Example: 1

Query Parameters

page   integer  optional  

Chose the number of the page. Default 1.

limit   integer  optional  

Chose the number of records to return per page (max 1000). Default 1000.

Response

Response Fields

records   object[]   

List of Records.

*   object   
id   string[]   

List of Ids, this record is associated with.

timestamp   string   

Timestamp this record was recorded at.

data   object[]   

List of data contained within the Record.

*   object   
descriptor   string   

The UID of the descriptor this datum represents.

value      

The value of the datum.

origin      

The UID of the Origin, this datum is related to. Can be null.

unit      

The UID of the Unit, this datum is related to. Can be null.

Store Data

requires authentication

Store a set of records within provided Dataset Part.

Example request:
curl --request POST \
    "https://pollinator-hub/api/v1/parts/1/data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"records\": [
        \"adipisci\"
    ]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/parts/1/data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'records' => [
                'adipisci',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/parts/1/data"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "records": [
        "adipisci"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/parts/1/data'
payload = {
    "records": [
        "adipisci"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{}
 

Request   

POST api/v1/parts/{part_id}/data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

part_id   integer   

The ID of the Dataset Part. Example: 1

Body Parameters

records   string[]   

A list of records (rows) to be uploaded.

timestamp   string   

Time of measurement in ISO 8601 timestamp. Example: 2022-09-27 18:00:00

data   string[]   

A list of columns to insert. Must have at least 1 items. Example: mtrqxkjxopkgcspa

descriptor   string   

Example: NUTSA3.RNITS37.NTSLV39

Must be one of:
  • 0.0.BKPRD343
  • 0.0.BLEAN316
  • 0.0.CDFTH390
  • 0.0.CLNDR340
  • 0.0.CLNDR376
  • 0.0.CLNYD362
  • 0.0.CNCNT399
  • 0.0.CPCCD391
  • 0.0.CRDNT330
  • 0.0.CSRGS389
  • 0.0.DATEA317
  • 0.0.DCMLN314
  • 0.0.DTNDT319
  • 0.0.DTRNG328
  • 0.0.DTRNG387
  • 0.0.DYFTH382
  • 0.0.GBFTX336
  • 0.0.HGHTB393
  • 0.0.HNYBD375
  • 0.0.HNYPR341
  • 0.0.HRFDY386
  • 0.0.HVWGH33
  • 0.0.LCODE73
  • 0.0.LNDWR140
  • 0.0.LNGTD332
  • 0.0.LPHCN4
  • 0.0.LPHCN5
  • 0.0.LTTDE333
  • 0.0.MCODE356
  • 0.0.MNCPL132
  • 0.0.NITID86
  • 0.0.NMBRF371
  • 0.0.NTGER313
  • 0.0.NTNME87
  • 0.0.NTSCD55
  • 0.0.NVRSL380
  • 0.0.PHCDE392
  • 0.0.PLTCL128
  • 0.0.PRYID342
  • 0.0.PSTCD378
  • 0.0.RCRDC35
  • 0.0.RCRDD344
  • 0.0.RCRDL34
  • 0.0.RFRNC329
  • 0.0.RLTVH395
  • 0.0.TESTA440
  • 0.0.TEXTA315
  • 0.0.TIMEA318
  • 0.0.TMPRT394
  • 0.0.TMSPH396
  • 0.0.TXTTR323
  • 0.0.VTDNT
  • BKPNG8.0.CTVNG372
  • BKPNG8.0.CTVNG373
  • BKPNG8.0.DMNCD363
  • BKPNG8.0.FLGID368
  • BKPNG8.0.LMNTC364
  • BKPNG8.0.MNTHD370
  • BKPNG8.0.NITID367
  • BKPNG8.0.SRCDA369
  • BKPNG8.0.SRCHT374
  • BKPNG8.0.TMCDE365
  • BKPNG8.0.YRIDA366
  • BSCLD32.0.RPLCT398
  • BSCLD32.0.TRTMN397
  • BSCLD32.0.WGHTT401
  • BSCLD32.0.WGHTT402
  • BSCLD32.0.XPRMN405
  • CNTRS2.0.CNTRY2
  • CNTRS2.0.NMRCC1
  • CNTRS2.0.SHRTC3
  • CNTRS2.ISOAB1.CNTRY6
  • CNTRS2.ISOAB1.CNTRY8
  • CNTRS2.ISOAB1.NDDTE15
  • CNTRS2.ISOAB1.NMRCC7
  • CNTRS2.ISOAB1.SHRTC10
  • CNTRS2.ISOAB1.SHRTC9
  • CNTRS2.ISOAB1.SNNTT18
  • CNTRS2.ISOAB1.SNNTT19
  • CNTRS2.ISOAB1.SNNTT20
  • CNTRS2.ISOAB1.STRTD14
  • CNTRS2.ISOAB1.STTSN17
  • CNTRS2.ISOAB1.STTUS16
  • CNTRS2.UNSDM2.AREAA355
  • CNTRS2.UNSDM2.GLBLC347
  • CNTRS2.UNSDM2.GLBLN348
  • CNTRS2.UNSDM2.IDABC345
  • CNTRS2.UNSDM2.LDCAB359
  • CNTRS2.UNSDM2.LLDCA360
  • CNTRS2.UNSDM2.LNGGE346
  • CNTRS2.UNSDM2.NTRMR353
  • CNTRS2.UNSDM2.NTRMR354
  • CNTRS2.UNSDM2.RGNCD349
  • CNTRS2.UNSDM2.RGNNM350
  • CNTRS2.UNSDM2.SBRGN351
  • CNTRS2.UNSDM2.SBRGN352
  • CNTRS2.UNSDM2.SIDSA361
  • CRRNC5.ISOAB3.CRRNC79
  • CRRNC5.ISOAB3.DFNTN83
  • CRRNC5.ISOAB3.DTPBL85
  • CRRNC5.ISOAB3.IDABC76
  • CRRNC5.ISOAB3.LPHBT80
  • CRRNC5.ISOAB3.LPHCD77
  • CRRNC5.ISOAB3.MNRNT82
  • CRRNC5.ISOAB3.NMRCC81
  • CRRNC5.ISOAB3.NTTYN78
  • CRRNC5.ISOAB3.WTHDR84
  • DVSNS29.0.DSCRP144
  • DVSNS29.0.KPGAB143
  • DVSNS29.0.SRCDA145
  • DVSNS29.HPGAB53.DSCRP141
  • DVSNS29.HPGAB53.SRCDA142
  • DVSNS29.LSTAT52.LAUAB134
  • DVSNS29.LSTAT52.MNCPL133
  • DVSNS29.LSTAT52.NUTSA136
  • DVSNS29.LSTAT52.PLTCL137
  • DVSNS29.LSTAT52.PLTCL138
  • DVSNS29.LSTAT52.PSTCD135
  • DVSNS29.LSTAT52.SRCDA139
  • DVSNS29.LTLPG55.HPGAB147
  • DVSNS29.LTLPG55.KPGAB148
  • DVSNS29.LTLPG55.MNCPL146
  • DVSNS29.LTLPG55.SRCDA149
  • DVSNS29.PLDST51.DSCRP130
  • DVSNS29.PLDST51.PLTCL129
  • DVSNS29.PLDST51.SRCDA131
  • FSTTM9.0.FSTTD416
  • FSTTM9.0.FSTTD417
  • FSTTM9.BBRVT209.FSTTB409
  • FSTTM9.BBRVT209.FSTTB410
  • FSTTM9.FLAGS213.FSTTF422
  • FSTTM9.ITEMA214.FSTTT424
  • FSTTM9.UNITS216.FSTTN420
  • HNYPR6.0.BKPER152
  • HNYPR6.0.HNYYL154
  • HNYPR6.0.HPGAB156
  • HNYPR6.0.IDABC150
  • HNYPR6.0.NUTSA155
  • HNYPR6.0.PIARY153
  • HNYPR6.0.YEARA151
  • LNGGE20.ISOAB46.FRNCH106
  • LNGGE20.ISOAB46.NAMEA105
  • LNGGE20.ISOAB46.SLPHD102
  • LNGGE20.ISOAB46.SLPHD103
  • LNGGE20.ISOAB46.SLPHD104
  • LNGGE20.ISOAB47.CMMNT114
  • LNGGE20.ISOAB47.RFRNC113
  • LNGGE20.ISOAB47.SCOPE111
  • LNGGE20.ISOAB47.SLPHD107
  • LNGGE20.ISOAB47.SLPHD108
  • LNGGE20.ISOAB47.SLPHD109
  • LNGGE20.ISOAB47.SLPHD110
  • LNGGE20.ISOAB47.TYPEA112
  • LNGGE20.LNGGS45.FFCLL100
  • LNGGE20.LNGGS45.NTNME99
  • LNGGE20.LNGGS45.PRCDR101
  • LNGGE20.LNGGS45.SLPHD98
  • LNGGE20.SMCRL48.LNGGD116
  • LNGGE20.SMCRL48.MCRLN115
  • LNGGE20.SMCRL48.STTSC117
  • LNGGE20.SNMES49.DNTFR118
  • LNGGE20.SNMES49.NVRTD121
  • LNGGE20.SNMES49.PRNTN120
  • LNGGE20.SNMES49.SLPHD119
  • LNGGE20.SRTRM50.CHNGT125
  • LNGGE20.SRTRM50.FFCTV127
  • LNGGE20.SRTRM50.LNGGN123
  • LNGGE20.SRTRM50.RTRMN124
  • LNGGE20.SRTRM50.RTRMN126
  • LNGGE20.SRTRM50.SLPHD122
  • MUSTB76.0.BKPRD385
  • MUSTB76.0.FLDNO383
  • MUSTB76.0.NQPLY384
  • MUSTB76.0.STNME381
  • NUTSA3.LAUAB44.DNTFR71
  • NUTSA3.LAUAB44.NAMEA74
  • NUTSA3.LAUAB44.NMNLT75
  • NUTSA3.NTSBR38.DNTFR45
  • NUTSA3.NTSBR38.DSCRP46
  • NUTSA3.NTSCS39.DNTFR47
  • NUTSA3.NTSCS39.DSCRP48
  • NUTSA3.NTSMN40.DNTFR49
  • NUTSA3.NTSMN40.DSCRP50
  • NUTSA3.NTSRB42.DNTFR53
  • NUTSA3.NTSRB42.DSCRP54
  • NUTSA3.NTSRM41.DNTFR51
  • NUTSA3.NTSRM41.DSCRP52
  • NUTSA3.NUTSA43.BRDER66
  • NUTSA3.NUTSA43.CSTAL64
  • NUTSA3.NUTSA43.LEVEL58
  • NUTSA3.NUTSA43.MNTNS65
  • NUTSA3.NUTSA43.MTRPL62
  • NUTSA3.NUTSA43.MTRPL63
  • NUTSA3.NUTSA43.NAMEA56
  • NUTSA3.NUTSA43.NMNLT57
  • NUTSA3.NUTSA43.RBNRR60
  • NUTSA3.NUTSA43.RMTNS68
  • NUTSA3.NUTSA43.SMTRP61
  • NUTSA3.NUTSA43.SSLND67
  • NUTSA3.NUTSA43.VLDFR69
  • NUTSA3.NUTSA43.VLDTO70
  • NUTSA3.NUTSA43.VRSNA59
  • NUTSA3.RNITS37.CLUMN43
  • NUTSA3.RNITS37.CLUMN44
  • NUTSA3.RNITS37.NTSLV37
  • NUTSA3.RNITS37.NTSLV38
  • NUTSA3.RNITS37.NTSLV39
  • NUTSA3.RNITS37.NTSLV40
  • NUTSA3.RNITS37.NTSLV41
  • NUTSA3.RNITS37.NTSLV42
  • PHRFR27.0.IMAGE331
  • PHRFR27.0.LCNCT408
  • PHRFR27.LCNCS36.BBRVT22
  • PHRFR27.LCNCS36.CRTDT30
  • PHRFR27.LCNCS36.DLTDT32
  • PHRFR27.LCNCS36.DNTFR21
  • PHRFR27.LCNCS36.LCNCD24
  • PHRFR27.LCNCS36.LCNCD26
  • PHRFR27.LCNCS36.LCNCN25
  • PHRFR27.LCNCS36.PDTDT31
  • PHRFR27.LCNCS36.SLUGA23
  • PHRFR27.LCNCS36.VLBLT29
  • PHRFR27.LCNCS36.XTRNL27
  • PHRFR27.LCNCS36.XTRNL28
  • PLLNT11.CRPGG73.CRPID388
  • SRVYN102.0.AGEAB446
  • SRVYN102.0.CVABC447
  • SRVYN102.0.NMFLD444
  • SRVYN102.0.SEXAB445
  • TESTA101.0.TESTA
  • TESTA101.0.TESTA439
  • TESTA92.0.BVCBV443
  • TESTA92.0.DSFDS442
  • TESTA92.0.TSTNG441
  • UNITS7.UNITS4.BPMRF96
  • UNITS7.UNITS4.BSNIT91
  • UNITS7.UNITS4.CNVRS92
  • UNITS7.UNITS4.CNVRS93
  • UNITS7.UNITS4.NSDRF95
  • UNITS7.UNITS4.NTDSC90
  • UNITS7.UNITS4.QNTTY89
  • UNITS7.UNITS4.SRFRN97
  • UNITS7.UNITS4.STNDR88
  • VTCSS14.0.CSNMB379
  • VTCSS14.0.SRCDA377
value   string   

The value of the column. Must be at least 1 character. Example: 55.23

unit   string  optional  

Optionally the name of the unit the value is provided in. By skipping this value a default is used based on the column type. Example: kg

Must be one of:
  • n.a.
  • %
  • % of total LSU
  • trillion EUR
  • billion EUR
  • million EUR
  • thousand EUR
  • EUR
  • EUR/kg
  • trillion USD
  • billion USD
  • million USD
  • thousand USD
  • USD
  • USD/m3
  • LCU
  • LCU/1000 kcal
  • LCU/J
  • LCU/t
  • LCU/kg
  • LCU/person/day
  • SLC
  • 1000 I$
  • I$
  • I$/person
  • units/100 km2 land area
  • units/ha land area
  • km
  • m
  • dm
  • cm
  • mm
  • μm
  • nm
  • 1000 ha
  • ha
  • m2
  • dm2
  • cm2
  • mm2
  • L
  • m3
  • 1000 head
  • head
  • no./animal
  • million no.
  • thousand no.
  • no.
  • billion no.
  • 1000 person
  • person
  • index
  • 2u
  • 12u
  • 1000u
  • u
  • U (jeu/pack)
  • kcal/capita/day
  • J/capita/day
  • million kcal
  • kcal
  • Terajoule
  • 1000 kWh
  • kWh
  • joule
  • electronvolt
  • watt
  • °C
  • Varroa mites/day
  • km/h
  • m/s
  • m/s2
  • year
  • month
  • week
  • day
  • hour
  • minute
  • second
  • 100 mg/animal
  • hg/animal
  • mg/animal
  • hg/t
  • t/ha
  • hg/ha
  • kg/ha
  • kg/person
  • kg nutrients
  • g CH4/kg dry matter
  • kg CH4/head
  • g N2O/kg dry matter
  • kg N2O-N/ha
  • kg N2O-N/kg N
  • kg CO2eq/kg product
  • g/capita/day
  • Mt
  • kt
  • t
  • kg
  • hg
  • dag
  • g
  • mg
  • ng
  • carat
  • degree
  • angle minute
  • angle second
  • radian
  • steradian
  • ampere
  • volt
  • farad
  • ohm
  • siemens
  • mole
  • mole/m3
  • kelvin
  • hertz
  • newton
  • pascal
  • lux
  • becquerel
  • sievert
  • katal
  • kg/m3
  • m3/kg
  • candela
  • W/m2
  • cd/m2
  • coulomb
  • weber
  • tesla
  • henry
  • lumen
  • gray
  • /m
  • kg/m2
  • A/m2
  • A/m
  • Pa s
  • N m
  • N/m
  • rad/s
  • rad/s2
  • J/K
  • J/(K kg)
  • J/kg
  • W/(K m)
  • J/m3
  • V/m
  • C/m3
  • C/m2
  • F/m
  • H/m
  • J/mol
  • J/(K mol)
  • C/kg
  • Gy/s
  • W/sr
  • W/(sr m2)
  • kat/m3
  • astronomical unit
  • dalton
  • neper
  • bel
  • decibel
  • ADP
  • AED
  • AFA
  • AFN
  • ALK
  • ALL
  • AMD
  • ANG
  • AOA
  • AOK
  • AON
  • AOR
  • ARA
  • ARP
  • ARS
  • ARY
  • ATS
  • AUD
  • AWG
  • AYM
  • AZM
  • AZN
  • BAD
  • BAM
  • BBD
  • BDT
  • BEC
  • BEF
  • BEL
  • BGJ
  • BGK
  • BGL
  • BGN
  • BHD
  • BIF
  • BMD
  • BND
  • BOB
  • BOP
  • BOV
  • BRB
  • BRC
  • BRE
  • BRL
  • BRN
  • BRR
  • BSD
  • BTN
  • BUK
  • BWP
  • BYB
  • BYN
  • BYR
  • BZD
  • CAD
  • CDF
  • CHC
  • CHE
  • CHF
  • CHW
  • CLF
  • CLP
  • CNY
  • COP
  • COU
  • CRC
  • CSD
  • CSJ
  • CSK
  • CUC
  • CUP
  • CVE
  • CYP
  • CZK
  • DDM
  • DEM
  • DJF
  • DKK
  • DOP
  • DZD
  • ECS
  • ECV
  • EEK
  • EGP
  • ERN
  • ESA
  • ESB
  • ESP
  • ETB
  • FIM
  • FJD
  • FKP
  • FRF
  • GBP
  • GEK
  • GEL
  • GHC
  • GHP
  • GHS
  • GIP
  • GMD
  • GNE
  • GNF
  • GNS
  • GQE
  • GRD
  • GTQ
  • GWE
  • GWP
  • GYD
  • HKD
  • HNL
  • HRD
  • HRK
  • HTG
  • HUF
  • IDR
  • IEP
  • ILP
  • ILR
  • ILS
  • INR
  • IQD
  • IRR
  • ISJ
  • ISK
  • ITL
  • JMD
  • JOD
  • JPY
  • KES
  • KGS
  • KHR
  • KMF
  • KPW
  • KRW
  • KWD
  • KYD
  • KZT
  • LAJ
  • LAK
  • LBP
  • LKR
  • LRD
  • LSL
  • LSM
  • LTL
  • LTT
  • LUC
  • LUF
  • LUL
  • LVL
  • LVR
  • LYD
  • MAD
  • MDL
  • MGA
  • MGF
  • MKD
  • MLF
  • MMK
  • MNT
  • MOP
  • MRO
  • MRU
  • MTL
  • MTP
  • MUR
  • MVQ
  • MVR
  • MWK
  • MXN
  • MXP
  • MXV
  • MYR
  • MZE
  • MZM
  • MZN
  • NAD
  • NGN
  • NIC
  • NIO
  • NLG
  • NOK
  • NPR
  • NZD
  • OMR
  • PAB
  • PEH
  • PEI
  • PEN
  • PES
  • PGK
  • PHP
  • PKR
  • PLN
  • PLZ
  • PTE
  • PYG
  • QAR
  • RHD
  • ROK
  • ROL
  • RON
  • RSD
  • RUB
  • RWF
  • SAR
  • SBD
  • SCR
  • SDD
  • SDG
  • SDP
  • SEK
  • SGD
  • SHP
  • SIT
  • SKK
  • SLE
  • SLL
  • SOS
  • SRD
  • SRG
  • SSP
  • STD
  • STN
  • SUR
  • SVC
  • SYP
  • SZL
  • THB
  • TJR
  • TJS
  • TMM
  • TMT
  • TND
  • TOP
  • TPE
  • TRL
  • TRY
  • TTD
  • TWD
  • TZS
  • UAH
  • UAK
  • UGS
  • UGW
  • UGX
  • USN
  • USS
  • UYI
  • UYN
  • UYP
  • UYU
  • UYW
  • UZS
  • VEB
  • VED
  • VEF
  • VES
  • VNC
  • VND
  • VUV
  • WST
  • XAF
  • XAG
  • XAU
  • XBA
  • XBB
  • XBC
  • XBD
  • XCD
  • XDR
  • XEU
  • XFO
  • XFU
  • XOF
  • XPD
  • XPF
  • XPT
  • XRE
  • XSU
  • XTS
  • XUA
  • XXX
  • YDD
  • YER
  • YUD
  • YUM
  • YUN
  • ZAL
  • ZAR
  • ZMK
  • ZMW
  • ZRN
  • ZRZ
  • ZWC
  • ZWD
  • ZWL
  • ZWN
  • ZWR
  • hectopascal
  • g/m3
  • mg/L
  • ng/L
  • ug/L
  • ft
  • °F

Delete all Data

requires authentication

Removes all data related to this Dataset Part.

Example request:
curl --request DELETE \
    "https://pollinator-hub/api/v1/parts/1/data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://pollinator-hub/api/v1/parts/1/data';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://pollinator-hub/api/v1/parts/1/data"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
import requests
import json

url = 'https://pollinator-hub/api/v1/parts/1/data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (204):

Empty response
 

Request   

DELETE api/v1/parts/{part_id}/data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

part_id   integer   

The ID of the Dataset Part. Example: 1