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=793
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=794", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=792", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8964/?format=api", "id": 8964, "code": "TS14", "parameter": "Pb", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.274181Z", "last_modified": "2023-11-22T08:36:43.274165Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8965/?format=api", "id": 8965, "code": "TS164", "parameter": "Diazinon", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.282318Z", "last_modified": "2023-11-22T08:36:43.282303Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8966/?format=api", "id": 8966, "code": "TS10", "parameter": "SO4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.294934Z", "last_modified": "2023-11-22T08:36:43.294918Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8967/?format=api", "id": 8967, "code": "TS16", "parameter": "Cu", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.331969Z", "last_modified": "2023-11-22T08:36:43.331953Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8968/?format=api", "id": 8968, "code": "TS19", "parameter": "Mn2+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.335397Z", "last_modified": "2023-11-22T08:36:43.335384Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8969/?format=api", "id": 8969, "code": "TS20", "parameter": "Hg", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.357480Z", "last_modified": "2023-11-22T08:36:43.357465Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8970/?format=api", "id": 8970, "code": "TS15", "parameter": "Cr6", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.358516Z", "last_modified": "2023-11-22T08:36:43.358494Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8971/?format=api", "id": 8971, "code": "TS22", "parameter": "Se", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.362566Z", "last_modified": "2023-11-22T08:36:43.362549Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8972/?format=api", "id": 8972, "code": "TS17", "parameter": "Zn", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.378315Z", "last_modified": "2023-11-22T08:36:43.378303Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8973/?format=api", "id": 8973, "code": "TS27", "parameter": "Heptachlor", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.380692Z", "last_modified": "2023-11-22T08:36:43.380678Z" } ] }{ "count": 8132, "next": "