Query parameters

code Text filter on the code field. All text field filter methods, like startswith, endswith, icontains are supported.

parameter Text filter on parameter field. All text field filter methods, like startswith, endswith, icontains are supported.

unit Text filter on unit field. All text field filter methods, like startswith, endswith, icontains are supported.

created: Temporal filter on created. Supports various lookup types (exact, lt, lte, gt, gte; created__exact by default). Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.

last_modified: Temporal filter on last_modified. Supports various lookup types (exact, lt, lte, gt, gte; last_modified__exact by default). Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.

Examples

?code=27234

?parameter__icontains=In bedrijf

?unit__iexact=m3/d

?created__gte=2017-01-01T00:00:00Z

?last_modified__lt=2018-01-01T00:00:00Z

POST

Creating an invitation requires a POST to a list url:

POST api/v4/observationtypes/

Request body example:

{
code": "gwaterlvl_mMSL",
parameter": "Water level",
unit": "m",
scale": "interval",
"description": "Water level in meters with Mean Sea Level (MSL)
    as reference datum, measured in groundwater (GW)
    and displayed as a line chart (interval).",
"reference_frame": "MSL",
"compartment": "GW"
}

Where scale can be one of the following values: nominal, ordinal, interval, ratio.

GET /api/v4/observationtypes/?page=3
HTTP 200 OK
Allow: GET, HEAD, OPTIONS, POST
Content-Type: application/json
Vary: Accept

{
    "count": 8111,
    "next": "https://demo.lizard.net/api/v4/observationtypes/?page=4",
    "previous": "https://demo.lizard.net/api/v4/observationtypes/?page=2",
    "results": [
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/38/",
            "id": 38,
            "code": "WNS2369",
            "parameter": "Verpompt volume",
            "unit": "m3",
            "scale": "ratio",
            "description": "",
            "domain_values": null,
            "reference_frame": "",
            "compartment": "AW",
            "created": "2015-08-07T06:45:51.534777Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/181/",
            "id": 181,
            "code": "mBGS",
            "parameter": "Groundwaterlevel m [BGS]",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "BGS",
            "compartment": "GW",
            "created": "2015-08-26T08:37:14.182183Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/298/",
            "id": 298,
            "code": "STIJGHTE (mNAP)",
            "parameter": "Stijghoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": "",
            "created": "2015-09-11T07:11:50.753022Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/299/",
            "id": 299,
            "code": "DRUK (mbaradg) AW",
            "parameter": "Druk",
            "unit": "mbar",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "adg",
            "compartment": "AW",
            "created": "2015-09-11T07:12:07.802603Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/300/",
            "id": 300,
            "code": "LUCHTDK (mbaradg) AW",
            "parameter": "Luchtdruk",
            "unit": "mbar",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "adg",
            "compartment": "AW",
            "created": "2015-09-11T07:12:08.002871Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/301/",
            "id": 301,
            "code": "STIJGHTE (madg) DL",
            "parameter": "Stijghoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "adg",
            "compartment": "DL",
            "created": "2015-09-11T07:12:08.025245Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/302/",
            "id": 302,
            "code": "WATHTE (madg) AW",
            "parameter": "Waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "adg",
            "compartment": "AW",
            "created": "2015-09-11T07:12:08.034517Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/304/",
            "id": 304,
            "code": "DRUK (mbarNAP) GW",
            "parameter": "Druk",
            "unit": "mbar",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": "GW",
            "created": "2015-09-11T07:12:26.801298Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/305/",
            "id": 305,
            "code": "STIJGHTE (mNAP) OW",
            "parameter": "Stijghoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": "OW",
            "created": "2015-09-11T07:12:27.213063Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/306/",
            "id": 306,
            "code": "HOEK (graadPLAATSLR)",
            "parameter": "Hoek",
            "unit": "graad",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "PLAATSLR",
            "compartment": "",
            "created": "2015-09-11T07:13:04.894452Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        }
    ]
}