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=8
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=9", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=7", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/348/?format=api", "id": 348, "code": "HCFK121a (%)", "parameter": "HCFK121a", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:17.276369Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/349/?format=api", "id": 349, "code": "Stability (m)", "parameter": "Stability", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:17.393300Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/350/?format=api", "id": 350, "code": "DRUK () GW", "parameter": "Druk", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "GW", "created": "2015-09-11T08:04:17.613000Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/351/?format=api", "id": 351, "code": "WINDRTG (graad)", "parameter": "Windrichting", "unit": "graad", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:18.009699Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/352/?format=api", "id": 352, "code": "WATHTE (cm)", "parameter": "Waterhoogte", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "", "created": "2015-09-11T08:04:18.072539Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/353/?format=api", "id": 353, "code": "WATDK (KPa)", "parameter": "WATDK", "unit": "KPa", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:18.841013Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/354/?format=api", "id": 354, "code": "DRUK (KPa) BS", "parameter": "Druk", "unit": "KPa", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:18.901668Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/355/?format=api", "id": 355, "code": "DRUK (mbar) LT", "parameter": "Druk", "unit": "mbar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "LT", "created": "2015-09-11T08:04:19.177868Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/356/?format=api", "id": 356, "code": "Googste 1/3 (cm) OW", "parameter": "Googste 1/3", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:04:19.263841Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/357/?format=api", "id": 357, "code": "DRUK () BS", "parameter": "Druk", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:19.420270Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "