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=807
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=808", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=806", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9104/?format=api", "id": 9104, "code": "TS149", "parameter": "Heptaclor", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.060684Z", "last_modified": "2023-11-22T08:36:52.060670Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9105/?format=api", "id": 9105, "code": "TS150", "parameter": "Heptaclor epoxid", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.064366Z", "last_modified": "2023-11-22T08:36:52.064348Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9106/?format=api", "id": 9106, "code": "TS148", "parameter": "Chlorothialonil", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.065317Z", "last_modified": "2023-11-22T08:36:52.065301Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9107/?format=api", "id": 9107, "code": "TS151", "parameter": "Oxy-Chlorodane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.070404Z", "last_modified": "2023-11-22T08:36:52.070388Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9108/?format=api", "id": 9108, "code": "TS152", "parameter": "g-Chlordane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.316813Z", "last_modified": "2023-11-22T08:36:52.316793Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9109/?format=api", "id": 9109, "code": "TS155", "parameter": "Dầu mỡ khoáng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.317050Z", "last_modified": "2023-11-22T08:36:52.317035Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9110/?format=api", "id": 9110, "code": "TS154", "parameter": "Methoxychlor", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.317620Z", "last_modified": "2023-11-22T08:36:52.317600Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9111/?format=api", "id": 9111, "code": "TS158", "parameter": "Phosphate", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.320450Z", "last_modified": "2023-11-22T08:36:52.320429Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9112/?format=api", "id": 9112, "code": "TS153", "parameter": "Difocol", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.323715Z", "last_modified": "2023-11-22T08:36:52.323699Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9113/?format=api", "id": 9113, "code": "TS156", "parameter": "Dư lượng thuốc BVTV gốc Clo3", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.324955Z", "last_modified": "2023-11-22T08:36:52.324937Z" } ] }{ "count": 8132, "next": "