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/?format=api&page=44
HTTP 200 OK
Allow: GET, HEAD, OPTIONS, POST
Content-Type: application/json
Vary: Accept

{
    "count": 8139,
    "next": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=45",
    "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=43",
    "results": [
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/924/?format=api",
            "id": 924,
            "code": "H.diff.W2050.T100",
            "parameter": "T100 W2050 - waterhoogteverschil",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2018-03-26T14:48:37.637478Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/925/?format=api",
            "id": 925,
            "code": "H.diff.W2050.T1000",
            "parameter": "T1000 W2050 - waterhoogteverschil",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2018-03-26T14:49:18.020028Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/926/?format=api",
            "id": 926,
            "code": "H.diff.W2050.T10000",
            "parameter": "T10000 W2050 - waterhoogteverschil",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2018-03-26T14:49:50.109462Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/927/?format=api",
            "id": 927,
            "code": "H.R2015.T10",
            "parameter": "T10 R2015 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:51:07.586319Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/928/?format=api",
            "id": 928,
            "code": "H.R2015.T100",
            "parameter": "T100 R2015 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:51:40.962090Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/929/?format=api",
            "id": 929,
            "code": "H.R2015.T1000",
            "parameter": "T1000 R2015 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:52:19.091397Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/930/?format=api",
            "id": 930,
            "code": "H.R2015.T10000",
            "parameter": "T10000 R2015 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:52:50.554466Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/931/?format=api",
            "id": 931,
            "code": "H.W2050.T10",
            "parameter": "T10 W2050 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:53:28.312044Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/932/?format=api",
            "id": 932,
            "code": "H.W2050.T100",
            "parameter": "T100 W2050 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:53:57.154621Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/933/?format=api",
            "id": 933,
            "code": "H.W2050.T1000",
            "parameter": "T1000 W2050 - waterhoogte",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": null,
            "created": "2018-03-26T14:54:30.388884Z",
            "last_modified": "2019-06-25T07:26:10.441021Z"
        }
    ]
}