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=23
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=24", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=22", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/509/?format=api", "id": 509, "code": "HCT2368", "parameter": "Debiet (model)", "unit": "m3/h", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "AW", "created": "2016-05-13T11:40:00.849836Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/510/?format=api", "id": 510, "code": "opvangcapaciteit", "parameter": "Opvangcapaciteit", "unit": "mm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-05-30T13:32:27.525377Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/511/?format=api", "id": 511, "code": "Duur.min", "parameter": "Duur in minuten", "unit": "min", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-06-07T12:41:19.374076Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/512/?format=api", "id": 512, "code": "WNS2369.afgeleid", "parameter": "Verpompt volume (afgeleid)", "unit": "m3", "scale": "ratio", "description": "Afgeleid debiet tbv Purmerend", "domain_values": null, "reference_frame": "", "compartment": "AW", "created": "2016-06-15T07:57:51.861343Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/513/?format=api", "id": 513, "code": "-", "parameter": "", "unit": "", "scale": "nominal", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-06-23T14:13:36.979675Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/514/?format=api", "id": 514, "code": "Aantal binnen termijn", "parameter": "Aantal binnen termijn", "unit": "-", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-06-27T09:52:45.902826Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/515/?format=api", "id": 515, "code": "WNS2333", "parameter": "Stikstof totaal", "unit": "Ntot[mg/l][N][OW]", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-06-27T11:51:51.362101Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/516/?format=api", "id": 516, "code": "WNS2354", "parameter": "Fosfor totaal", "unit": "Ptot[mg/l][P][OW]", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-06-27T12:26:45.581237Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/517/?format=api", "id": 517, "code": "WNS2786", "parameter": "Fosfaat", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "[Pnf]", "compartment": "OW", "created": "2016-06-27T12:28:00.934569Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/518/?format=api", "id": 518, "code": "Aantal buiten termijn", "parameter": "Aantal buiten termijn", "unit": "-", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-06-29T18:32:01.431166Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "