Observation Type List
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=6
{ "count": 8132, "next": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=7", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=5", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/327/?format=api", "id": 327, "code": "HOOGTE (m)", "parameter": "HOOGTE", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:14.809775Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/328/?format=api", "id": 328, "code": "VERPTSG (mm)", "parameter": "VERPTSG", "unit": "mm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:14.827017Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/329/?format=api", "id": 329, "code": "Q (l/h)", "parameter": "Debiet", "unit": "l/h", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2015-09-11T08:04:14.842845Z", "last_modified": "2020-03-20T18:51:10.754573Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/331/?format=api", "id": 331, "code": "DRUK (mU) BS", "parameter": "Druk", "unit": "mU", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:14.898295Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/332/?format=api", "id": 332, "code": "111TClC2a (bar)", "parameter": "111TClC2a", "unit": "bar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:15.032760Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/333/?format=api", "id": 333, "code": "WATHTE (mTAW)", "parameter": "Waterhoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "TAW", "compartment": "", "created": "2015-09-11T08:04:15.208474Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/334/?format=api", "id": 334, "code": "DRUK (mbar) GW", "parameter": "Druk", "unit": "mbar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "GW", "created": "2015-09-11T08:04:15.227318Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/335/?format=api", "id": 335, "code": "Chlorosity (mg Cl/l) OW", "parameter": "Chlorosity", "unit": "mg Cl/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "OW", "created": "2015-09-11T08:04:15.282375Z", "last_modified": "2020-10-28T13:42:40.704665Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/336/?format=api", "id": 336, "code": "T (graad)", "parameter": "Temperatuur", "unit": "graad", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:15.312546Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/337/?format=api", "id": 337, "code": "INSLG (W/m2) LT", "parameter": "INSLG", "unit": "W/m2", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "LT", "created": "2015-09-11T08:04:15.460640Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }