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/?page=4
https://demo.lizard.net/api/v4/observationtypes/?page=5", "previous": "https://demo.lizard.net/api/v4/observationtypes/?page=3", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/307/", "id": 307, "code": "WATHTE (mNAP)", "parameter": "Waterhoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "", "created": "2015-09-11T07:13:04.928560Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/308/", "id": 308, "code": "HOOGTE (mNAP)", "parameter": "Hoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "", "created": "2015-09-11T07:13:11.538482Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/309/", "id": 309, "code": "111TClTol (Bq/m3dBZV) CH", "parameter": "111TClTol", "unit": "Bq/m3", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "dBZV", "compartment": "CH", "created": "2015-09-11T07:13:16.246273Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/310/", "id": 310, "code": "HCFK121a (Aadg) AW", "parameter": "HCFK121a", "unit": "A", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "adg", "compartment": "AW", "created": "2015-09-11T07:13:16.561256Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/311/", "id": 311, "code": "WATHTE (mNAP) BS", "parameter": "Waterhoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "BS", "created": "2015-09-11T07:13:21.617986Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/312/", "id": 312, "code": "AANWZHD (madg) AW", "parameter": "AANWZHD", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "adg", "compartment": "AW", "created": "2015-09-11T07:13:22.429785Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/313/", "id": 313, "code": "HCFK121a (madg) AW", "parameter": "HCFK121a", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "adg", "compartment": "AW", "created": "2015-09-11T07:13:24.357751Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/314/", "id": 314, "code": "X_CODNT (mdBZV) DL", "parameter": "X_CODNT", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "dBZV", "compartment": "DL", "created": "2015-09-11T07:13:31.290589Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/315/", "id": 315, "code": "X_CODNT (mdBZVdg) BF", "parameter": "X_CODNT", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "dBZVdg", "compartment": "BF", "created": "2015-09-11T07:13:31.968606Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/316/", "id": 316, "code": "X_CODNT (madg) BF", "parameter": "X_CODNT", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "adg", "compartment": "BF", "created": "2015-09-11T07:13:32.877069Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8123, "next": "