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=7
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=8", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=6", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/338/?format=api", "id": 338, "code": "X_CODNT (%) BS", "parameter": "X_CODNT", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:15.530849Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/339/?format=api", "id": 339, "code": "WATHTE () GW", "parameter": "Waterhoogte", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "GW", "created": "2015-09-11T08:04:15.591484Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/340/?format=api", "id": 340, "code": "NEERSG (mm) LT", "parameter": "Neerslag", "unit": "mm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "LT", "created": "2015-09-11T08:04:15.670730Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/341/?format=api", "id": 341, "code": "T (coC)", "parameter": "Temperatuur", "unit": "coC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:16.057846Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/342/?format=api", "id": 342, "code": "halon2402 (bar)", "parameter": "halon2402", "unit": "bar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:16.108504Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/343/?format=api", "id": 343, "code": "BODHTE (mm)", "parameter": "Bodemhoogte", "unit": "mm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:16.345254Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/344/?format=api", "id": 344, "code": "VOLME (%)", "parameter": "Volume", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2015-09-11T08:04:16.382454Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/345/?format=api", "id": 345, "code": "T (oC) lucht", "parameter": "Temperatuur", "unit": "oC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "lucht", "created": "2015-09-11T08:04:16.577216Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/346/?format=api", "id": 346, "code": "T (m) BS", "parameter": "Temperatuur", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:16.685774Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/347/?format=api", "id": 347, "code": "WATHTE (m)", "parameter": "Waterhoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:16.869715Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "