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=801
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=802", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=800", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9044/?format=api", "id": 9044, "code": "TS89", "parameter": "CL2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:49.767367Z", "last_modified": "2023-11-22T08:36:49.767342Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9045/?format=api", "id": 9045, "code": "TS78", "parameter": "Lân", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:49.809539Z", "last_modified": "2023-11-22T08:36:49.809524Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9046/?format=api", "id": 9046, "code": "TS86", "parameter": "Bức Xạ", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:49.810779Z", "last_modified": "2023-11-22T08:36:49.810761Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9047/?format=api", "id": 9047, "code": "TS95", "parameter": "Lindane (C6H6Cl6)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:49.811316Z", "last_modified": "2023-11-22T08:36:49.811299Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9048/?format=api", "id": 9048, "code": "TS77", "parameter": "Clo", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:49.817468Z", "last_modified": "2023-11-22T08:36:49.817450Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9049/?format=api", "id": 9049, "code": "TS85", "parameter": "Áp suất", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:49.823887Z", "last_modified": "2023-11-22T08:36:49.823868Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9050/?format=api", "id": 9050, "code": "TS98", "parameter": "Thuốc BVTV gốc clo (µg/l) -DDT", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.130576Z", "last_modified": "2023-11-22T08:36:50.130561Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9051/?format=api", "id": 9051, "code": "TS96", "parameter": "DDT (C14H9Cl5)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.132223Z", "last_modified": "2023-11-22T08:36:50.132209Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9052/?format=api", "id": 9052, "code": "TS97", "parameter": "Thuốc BVTV gốc clo (µg/l) -Lindan", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.134438Z", "last_modified": "2023-11-22T08:36:50.134421Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9053/?format=api", "id": 9053, "code": "TS99", "parameter": "Hướng gió", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.720214Z", "last_modified": "2023-11-22T08:36:50.720200Z" } ] }{ "count": 8132, "next": "