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=780
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=781", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=779", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8834/?format=api", "id": 8834, "code": "Mn2+", "parameter": "Mn2+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.287391Z", "last_modified": "2023-11-22T07:35:10.287377Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8835/?format=api", "id": 8835, "code": "CN", "parameter": "CN", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.292295Z", "last_modified": "2023-11-22T07:35:10.292279Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8836/?format=api", "id": 8836, "code": "Ni", "parameter": "Ni", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.292581Z", "last_modified": "2023-11-22T07:35:10.292566Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8837/?format=api", "id": 8837, "code": "E.Coli", "parameter": "E.Coli", "unit": "MPN hoặc CFU/100 ml", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.322922Z", "last_modified": "2023-11-22T07:35:10.322907Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8838/?format=api", "id": 8838, "code": "TDS", "parameter": "TDS", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.324142Z", "last_modified": "2023-11-22T07:35:10.324126Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8839/?format=api", "id": 8839, "code": "Se", "parameter": "Se", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.328160Z", "last_modified": "2023-11-22T07:35:10.328139Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8840/?format=api", "id": 8840, "code": "EC", "parameter": "EC", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.332008Z", "last_modified": "2023-11-22T07:35:10.331992Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8841/?format=api", "id": 8841, "code": "K+", "parameter": "K+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.341595Z", "last_modified": "2023-11-22T07:35:10.341572Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8842/?format=api", "id": 8842, "code": "Cl", "parameter": "Cl", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.345971Z", "last_modified": "2023-11-22T07:35:10.345956Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8843/?format=api", "id": 8843, "code": "Chất hoạt động bề mặt", "parameter": "Chất hoạt động bề mặt", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.345029Z", "last_modified": "2023-11-22T07:35:10.345012Z" } ] }{ "count": 8137, "next": "