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=796
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=797", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=795", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8994/?format=api", "id": 8994, "code": "TS34", "parameter": "COD", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.670593Z", "last_modified": "2023-11-22T08:36:46.670577Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8995/?format=api", "id": 8995, "code": "TS11", "parameter": "CN", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:47.320303Z", "last_modified": "2023-11-22T08:36:47.320286Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8996/?format=api", "id": 8996, "code": "TS39", "parameter": "Chất hoạt động bề mặt", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:47.664478Z", "last_modified": "2023-11-22T08:36:47.664463Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8997/?format=api", "id": 8997, "code": "TS41", "parameter": "H2S", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:47.749760Z", "last_modified": "2023-11-22T08:36:47.749744Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8998/?format=api", "id": 8998, "code": "TS38", "parameter": "Tổng Crom", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:47.775098Z", "last_modified": "2023-11-22T08:36:47.775075Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8999/?format=api", "id": 8999, "code": "TS40", "parameter": "TOC", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:47.805052Z", "last_modified": "2023-11-22T08:36:47.805036Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9000/?format=api", "id": 9000, "code": "TS42", "parameter": "Dầu mỡ động, thực vật", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.246565Z", "last_modified": "2023-11-22T08:36:48.246550Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9001/?format=api", "id": 9001, "code": "TS48", "parameter": "Độ màu", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.500019Z", "last_modified": "2023-11-22T08:36:48.500003Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9002/?format=api", "id": 9002, "code": "TS45", "parameter": "Heptachlorepoxide", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.499056Z", "last_modified": "2023-11-22T08:36:48.499040Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9003/?format=api", "id": 9003, "code": "TS50", "parameter": "Na+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.502253Z", "last_modified": "2023-11-22T08:36:48.502240Z" } ] }{ "count": 8132, "next": "