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=785
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=786", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=784", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8884/?format=api", "id": 8884, "code": "Methyl Parathion (C8H10NO5PS)", "parameter": "Methyl Parathion (C8H10NO5PS)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.731926Z", "last_modified": "2023-11-22T07:35:12.731911Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8885/?format=api", "id": 8885, "code": "AL", "parameter": "AL", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.732161Z", "last_modified": "2023-11-22T07:35:12.732142Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8886/?format=api", "id": 8886, "code": "DDT (C14H9Cl5)", "parameter": "DDT (C14H9Cl5)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.733651Z", "last_modified": "2023-11-22T07:35:12.733638Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8887/?format=api", "id": 8887, "code": "Thuốc BVTV gốc clo (µg/l) -Lindan", "parameter": "Thuốc BVTV gốc clo (µg/l) -Lindan", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.733988Z", "last_modified": "2023-11-22T07:35:12.733968Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8888/?format=api", "id": 8888, "code": "Độ sâu", "parameter": "Độ sâu", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.747594Z", "last_modified": "2023-11-22T07:35:12.747579Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8889/?format=api", "id": 8889, "code": "Nhiệt độ", "parameter": "Nhiệt độ", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.748432Z", "last_modified": "2023-11-22T07:35:12.748417Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8890/?format=api", "id": 8890, "code": "S2", "parameter": "S2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.754234Z", "last_modified": "2023-11-22T07:35:12.754219Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8891/?format=api", "id": 8891, "code": "Lindane (C6H6Cl6)", "parameter": "Lindane (C6H6Cl6)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.758133Z", "last_modified": "2023-11-22T07:35:12.758116Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8892/?format=api", "id": 8892, "code": "Áp suất", "parameter": "Áp suất", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.766617Z", "last_modified": "2023-11-22T07:35:12.766602Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8893/?format=api", "id": 8893, "code": "Độ cứng", "parameter": "Độ cứng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.891575Z", "last_modified": "2023-11-22T07:35:12.891561Z" } ] }{ "count": 8132, "next": "