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=5
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=6", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=4", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/317/?format=api", "id": 317, "code": "X_CODNT (madg) BS", "parameter": "X_CODNT", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "adg", "compartment": "BS", "created": "2015-09-11T07:13:42.819960Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/318/?format=api", "id": 318, "code": "X_CODNT (madg) AW", "parameter": "X_CODNT", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "adg", "compartment": "AW", "created": "2015-09-11T07:13:44.719106Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/319/?format=api", "id": 319, "code": "T (oCdBZVdg) BF", "parameter": "Temperatuur", "unit": "oC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "dBZVdg", "compartment": "BF", "created": "2015-09-11T08:04:14.568174Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/320/?format=api", "id": 320, "code": "WNS6529", "parameter": "Temperatuur", "unit": "oC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:14.589694Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/321/?format=api", "id": 321, "code": "DRUK (KPa)", "parameter": "Druk", "unit": "KPa", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:14.607033Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/322/?format=api", "id": 322, "code": "WNS4840", "parameter": "Temperatuur", "unit": "oC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "GW", "created": "2015-09-11T08:04:14.624591Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/323/?format=api", "id": 323, "code": "DRUK (KPa) GW", "parameter": "Druk", "unit": "KPa", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "GW", "created": "2015-09-11T08:04:14.643010Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/324/?format=api", "id": 324, "code": "DRUK (m)", "parameter": "Druk", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:14.686697Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/325/?format=api", "id": 325, "code": "T (oC)", "parameter": "Temperatuur", "unit": "°C", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2015-09-11T08:04:14.703240Z", "last_modified": "2019-10-17T19:30:52.369929Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/326/?format=api", "id": 326, "code": "WNS8878", "parameter": "Frequentie", "unit": "Hz", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "NT", "created": "2015-09-11T08:04:14.739961Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "