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=794
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=795", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=793", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8974/?format=api", "id": 8974, "code": "TS28", "parameter": "Phenol", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:43.646964Z", "last_modified": "2023-11-22T08:36:43.646950Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8975/?format=api", "id": 8975, "code": "TS18", "parameter": "Ni", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.136848Z", "last_modified": "2023-11-22T08:36:44.136833Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8976/?format=api", "id": 8976, "code": "TS6", "parameter": "N_NO2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.252041Z", "last_modified": "2023-11-22T08:36:44.252028Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8977/?format=api", "id": 8977, "code": "TS4", "parameter": "CaCO3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.285045Z", "last_modified": "2023-11-22T08:36:44.285021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8978/?format=api", "id": 8978, "code": "TS8", "parameter": "Cl", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.284433Z", "last_modified": "2023-11-22T08:36:44.284418Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8979/?format=api", "id": 8979, "code": "TS7", "parameter": "N_NO3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.300753Z", "last_modified": "2023-11-22T08:36:44.300738Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8980/?format=api", "id": 8980, "code": "TS1", "parameter": "pH", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.313225Z", "last_modified": "2023-11-22T08:36:44.313199Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8981/?format=api", "id": 8981, "code": "TS23", "parameter": "Aldrin", "unit": "µg/I", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.370443Z", "last_modified": "2023-11-22T08:36:44.370422Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8982/?format=api", "id": 8982, "code": "TS25", "parameter": "Dieldrin", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.388340Z", "last_modified": "2023-11-22T08:36:44.388323Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8983/?format=api", "id": 8983, "code": "TS24", "parameter": "BHC", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.415324Z", "last_modified": "2023-11-22T08:36:44.415305Z" } ] }{ "count": 8132, "next": "