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=782
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=783", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=781", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8854/?format=api", "id": 8854, "code": "F", "parameter": "F", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.281025Z", "last_modified": "2023-11-22T07:35:11.281012Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8855/?format=api", "id": 8855, "code": "Tổng N", "parameter": "Tổng N", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.622219Z", "last_modified": "2023-11-22T07:35:11.622209Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8856/?format=api", "id": 8856, "code": "Độ ồn", "parameter": "Độ ồn", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.630928Z", "last_modified": "2023-11-22T07:35:11.630911Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8857/?format=api", "id": 8857, "code": "Bụi tổng số (TSP)", "parameter": "Bụi tổng số (TSP)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.633586Z", "last_modified": "2023-11-22T07:35:11.633570Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8858/?format=api", "id": 8858, "code": "Độ mặn", "parameter": "Độ mặn", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.638801Z", "last_modified": "2023-11-22T07:35:11.638768Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8859/?format=api", "id": 8859, "code": "CO3", "parameter": "CO3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.648446Z", "last_modified": "2023-11-22T07:35:11.648428Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8860/?format=api", "id": 8860, "code": "SO2", "parameter": "SO2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.650422Z", "last_modified": "2023-11-22T07:35:11.650407Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8861/?format=api", "id": 8861, "code": "N_NH3", "parameter": "N_NH3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.652701Z", "last_modified": "2023-11-22T07:35:11.652675Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8862/?format=api", "id": 8862, "code": "Fe tổng", "parameter": "Fe tổng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.655279Z", "last_modified": "2023-11-22T07:35:11.655261Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8863/?format=api", "id": 8863, "code": "Lân", "parameter": "Lân", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.655776Z", "last_modified": "2023-11-22T07:35:11.655762Z" } ] }{ "count": 8137, "next": "