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=777
HTTP 200 OK
Allow: GET, HEAD, OPTIONS, POST
Content-Type: application/json
Vary: Accept

{
    "count": 8137,
    "next": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=778",
    "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=776",
    "results": [
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8804/?format=api",
            "id": 8804,
            "code": "SAF_KPI_3b",
            "parameter": "Verhouding motorstroom en draaitijd KPI",
            "unit": "-",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2023-07-21T13:43:51.802494Z",
            "last_modified": "2023-07-21T13:45:28.242728Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8805/?format=api",
            "id": 8805,
            "code": "WNS918.cum",
            "parameter": "Draaitijd totaal",
            "unit": "min",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": "NT",
            "created": "2023-07-26T13:00:10.648716Z",
            "last_modified": "2023-07-26T13:00:10.648703Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8806/?format=api",
            "id": 8806,
            "code": "PH",
            "parameter": "PH",
            "unit": "",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "",
            "compartment": "",
            "created": "2023-08-27T09:22:53.850440Z",
            "last_modified": "2023-08-27T09:22:53.850415Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8807/?format=api",
            "id": 8807,
            "code": "mucNuoc",
            "parameter": "mucNuoc",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "",
            "compartment": "",
            "created": "2023-09-06T13:02:22.013606Z",
            "last_modified": "2023-09-06T13:02:22.013583Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8808/?format=api",
            "id": 8808,
            "code": "CSI",
            "parameter": "Coastal Salinity Index",
            "unit": "",
            "scale": "interval",
            "description": "https://www2.usgs.gov/water/southatlantic/projects/coastalsalinity/index.html",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2023-10-17T15:00:33.485427Z",
            "last_modified": "2023-10-17T15:00:33.485411Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8809/?format=api",
            "id": 8809,
            "code": "PDI",
            "parameter": "Landslide Severity",
            "unit": "",
            "scale": "ordinal",
            "description": "Landslide severity according to the PDI framework",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2023-10-17T15:05:53.253325Z",
            "last_modified": "2023-10-17T15:06:04.200794Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8810/?format=api",
            "id": 8810,
            "code": "damage.mkdc",
            "parameter": "MKDC damage",
            "unit": "VND/m2",
            "scale": "ratio",
            "description": "Vietnamese Dong per square meter",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2023-10-30T13:21:34.684547Z",
            "last_modified": "2023-10-30T13:21:34.684537Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8811/?format=api",
            "id": 8811,
            "code": "WNS9040PRCTL2",
            "parameter": "Stijghoogte 2 percentiel",
            "unit": "m",
            "scale": "interval",
            "description": "2 percentiel van de stijghoogte van grondwatermetingen",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": "GW",
            "created": "2023-11-03T10:47:48.573411Z",
            "last_modified": "2023-11-06T15:05:55.010955Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8812/?format=api",
            "id": 8812,
            "code": "WNS9040PRCTL98",
            "parameter": "Stijghoogte 98 percentiel",
            "unit": "m",
            "scale": "interval",
            "description": "98 percentiel van de stijghoogte van grondwatermetingen",
            "domain_values": null,
            "reference_frame": "NAP",
            "compartment": "GW",
            "created": "2023-11-03T10:56:48.906147Z",
            "last_modified": "2023-11-06T15:06:04.154405Z"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8813/?format=api",
            "id": 8813,
            "code": "arrival_times",
            "parameter": "Time",
            "unit": "h",
            "scale": "interval",
            "description": "Arrival time of inundation (used in LDO)",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null,
            "created": "2023-11-08T10:16:13.780056Z",
            "last_modified": "2023-11-08T10:16:50.697084Z"
        }
    ]
}