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=786
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=787", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=785", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8894/?format=api", "id": 8894, "code": "Monocrotophos", "parameter": "Monocrotophos", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.893831Z", "last_modified": "2023-11-22T07:35:12.893816Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8895/?format=api", "id": 8895, "code": "CH4", "parameter": "CH4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.894374Z", "last_modified": "2023-11-22T07:35:12.894361Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8896/?format=api", "id": 8896, "code": "Thuốc BVTV gốc clo (µg/l) -DDT", "parameter": "Thuốc BVTV gốc clo (µg/l) -DDT", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.893797Z", "last_modified": "2023-11-22T07:35:12.893783Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8897/?format=api", "id": 8897, "code": "Endosulfan", "parameter": "Endosulfan", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.894671Z", "last_modified": "2023-11-22T07:35:12.894652Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8898/?format=api", "id": 8898, "code": "CnHm", "parameter": "CnHm", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.894821Z", "last_modified": "2023-11-22T07:35:12.894799Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8899/?format=api", "id": 8899, "code": "Chlordane", "parameter": "Chlordane", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.896360Z", "last_modified": "2023-11-22T07:35:12.896345Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8900/?format=api", "id": 8900, "code": "Endrin", "parameter": "Endrin", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.897275Z", "last_modified": "2023-11-22T07:35:12.897259Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8901/?format=api", "id": 8901, "code": "Ni-trit", "parameter": "Ni-trit", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.899440Z", "last_modified": "2023-11-22T07:35:12.899418Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8902/?format=api", "id": 8902, "code": "Nitrat", "parameter": "Nitrat", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.903611Z", "last_modified": "2023-11-22T07:35:12.903594Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8903/?format=api", "id": 8903, "code": "Hướng gió", "parameter": "Hướng gió", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.904357Z", "last_modified": "2023-11-22T07:35:12.904338Z" } ] }{ "count": 8132, "next": "