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=792
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=793", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=791", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8954/?format=api", "id": 8954, "code": "Endosulfan I", "parameter": "Endosulfan I", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.163547Z", "last_modified": "2023-11-22T07:35:14.163529Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8955/?format=api", "id": 8955, "code": "Độ dẫn điện", "parameter": "Độ dẫn điện", "unit": "msc/cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.169161Z", "last_modified": "2023-11-22T07:35:14.169145Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8956/?format=api", "id": 8956, "code": "Heptaclor epoxid", "parameter": "Heptaclor epoxid", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.182484Z", "last_modified": "2023-11-22T07:35:14.182468Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8957/?format=api", "id": 8957, "code": "Ethyl parathion", "parameter": "Ethyl parathion", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.211791Z", "last_modified": "2023-11-22T07:35:14.211774Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8958/?format=api", "id": 8958, "code": "Diazinon", "parameter": "Diazinon", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:25.111060Z", "last_modified": "2023-11-22T07:35:25.111044Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8959/?format=api", "id": 8959, "code": "Ethion", "parameter": "Ethion", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:27.156592Z", "last_modified": "2023-11-22T07:35:27.156573Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8960/?format=api", "id": 8960, "code": "Isodrin", "parameter": "Isodrin", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:27.464259Z", "last_modified": "2023-11-22T07:35:27.464244Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8961/?format=api", "id": 8961, "code": "TS9", "parameter": "F", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.248453Z", "last_modified": "2023-11-22T08:36:43.248437Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8962/?format=api", "id": 8962, "code": "TS12", "parameter": "As", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.265599Z", "last_modified": "2023-11-22T08:36:43.265585Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8963/?format=api", "id": 8963, "code": "TS13", "parameter": "Cd", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.272928Z", "last_modified": "2023-11-22T08:36:43.272913Z" } ] }{ "count": 8132, "next": "