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=789
{ "count": 8132, "next": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=790", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=788", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8924/?format=api", "id": 8924, "code": "Fe2+", "parameter": "Fe2+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.389956Z", "last_modified": "2023-11-22T07:35:13.389941Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8925/?format=api", "id": 8925, "code": "Delta - BHC", "parameter": "Delta - BHC", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.391116Z", "last_modified": "2023-11-22T07:35:13.391099Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8926/?format=api", "id": 8926, "code": "Tổng các chất hoạt động bề mặt", "parameter": "Tổng các 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:13.393125Z", "last_modified": "2023-11-22T07:35:13.393106Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8927/?format=api", "id": 8927, "code": "Ồn (dBA)2", "parameter": "Ồn (dBA)2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.393407Z", "last_modified": "2023-11-22T07:35:13.393387Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8928/?format=api", "id": 8928, "code": "Beta - BHC", "parameter": "Beta - BHC", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.393974Z", "last_modified": "2023-11-22T07:35:13.393955Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8929/?format=api", "id": 8929, "code": "Benzen Hexachloride", "parameter": "Benzen Hexachloride", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.394858Z", "last_modified": "2023-11-22T07:35:13.394842Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8930/?format=api", "id": 8930, "code": "Alpha - BHC", "parameter": "Alpha - BHC", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.408453Z", "last_modified": "2023-11-22T07:35:13.408427Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8931/?format=api", "id": 8931, "code": "Endrin ketone", "parameter": "Endrin ketone", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.435419Z", "last_modified": "2023-11-22T07:35:13.435404Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8932/?format=api", "id": 8932, "code": "DDE", "parameter": "DDE", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.848659Z", "last_modified": "2023-11-22T07:35:13.848643Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8933/?format=api", "id": 8933, "code": "DDT", "parameter": "DDT", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.849484Z", "last_modified": "2023-11-22T07:35:13.849395Z" } ] }