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=791
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=792", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=790", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8944/?format=api", "id": 8944, "code": "Difocol", "parameter": "Difocol", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.137691Z", "last_modified": "2023-11-22T07:35:14.137674Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8945/?format=api", "id": 8945, "code": "Chlorothialonil", "parameter": "Chlorothialonil", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.137407Z", "last_modified": "2023-11-22T07:35:14.137386Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8946/?format=api", "id": 8946, "code": "g-Chlordane", "parameter": "g-Chlordane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.139672Z", "last_modified": "2023-11-22T07:35:14.139656Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8947/?format=api", "id": 8947, "code": "Methoxychlor", "parameter": "Methoxychlor", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.147630Z", "last_modified": "2023-11-22T07:35:14.147615Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8948/?format=api", "id": 8948, "code": "Endosulfan II", "parameter": "Endosulfan II", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.150228Z", "last_modified": "2023-11-22T07:35:14.150214Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8949/?format=api", "id": 8949, "code": "Hexachlobenzen", "parameter": "Hexachlobenzen", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.154589Z", "last_modified": "2023-11-22T07:35:14.154574Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8950/?format=api", "id": 8950, "code": "Paration", "parameter": "Paration", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.155278Z", "last_modified": "2023-11-22T07:35:14.155263Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8951/?format=api", "id": 8951, "code": "Bromophos-methyl", "parameter": "Bromophos-methyl", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.157503Z", "last_modified": "2023-11-22T07:35:14.157488Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8952/?format=api", "id": 8952, "code": "tổng P", "parameter": "tổng P", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.161880Z", "last_modified": "2023-11-22T07:35:14.161862Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8953/?format=api", "id": 8953, "code": "Malation", "parameter": "Malation", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.162034Z", "last_modified": "2023-11-22T07:35:14.162017Z" } ] }{ "count": 8132, "next": "