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=788
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=789", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=787", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8914/?format=api", "id": 8914, "code": "TDM", "parameter": "TDM", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.352958Z", "last_modified": "2023-11-22T07:35:13.352943Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8915/?format=api", "id": 8915, "code": "MnO4", "parameter": "MnO4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.357616Z", "last_modified": "2023-11-22T07:35:13.357601Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8916/?format=api", "id": 8916, "code": "Endosulfan 2", "parameter": "Endosulfan 2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.358327Z", "last_modified": "2023-11-22T07:35:13.358312Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8917/?format=api", "id": 8917, "code": "Asen", "parameter": "Asen", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.359450Z", "last_modified": "2023-11-22T07:35:13.359434Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8918/?format=api", "id": 8918, "code": "Sulfate", "parameter": "Sulfate", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.361661Z", "last_modified": "2023-11-22T07:35:13.361645Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8919/?format=api", "id": 8919, "code": "Sunfat", "parameter": "Sunfat", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.363424Z", "last_modified": "2023-11-22T07:35:13.363407Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8920/?format=api", "id": 8920, "code": "Dioxin", "parameter": "Dioxin", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.363714Z", "last_modified": "2023-11-22T07:35:13.363698Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8921/?format=api", "id": 8921, "code": "Cặn tổng", "parameter": "Cặn tổng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.367476Z", "last_modified": "2023-11-22T07:35:13.367462Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8922/?format=api", "id": 8922, "code": "Lindane", "parameter": "Lindane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.368704Z", "last_modified": "2023-11-22T07:35:13.368685Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8923/?format=api", "id": 8923, "code": "Malathion", "parameter": "Malathion", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.368858Z", "last_modified": "2023-11-22T07:35:13.368820Z" } ] }{ "count": 8132, "next": "