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=804
{ "count": 8132, "next": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=805", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=803", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9074/?format=api", "id": 9074, "code": "TS102", "parameter": "CnHm", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.826385Z", "last_modified": "2023-11-22T08:36:50.826369Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9075/?format=api", "id": 9075, "code": "TS126", "parameter": "DMK", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.927263Z", "last_modified": "2023-11-22T08:36:50.927250Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9076/?format=api", "id": 9076, "code": "TS127", "parameter": "N_NH42", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.974609Z", "last_modified": "2023-11-22T08:36:50.974595Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9077/?format=api", "id": 9077, "code": "TS128", "parameter": "Sulfate", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.982010Z", "last_modified": "2023-11-22T08:36:50.981996Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9078/?format=api", "id": 9078, "code": "TS165", "parameter": "Ethion", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:51.074441Z", "last_modified": "2023-11-22T08:36:51.074426Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9079/?format=api", "id": 9079, "code": "TS2", "parameter": "MnO4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:51.092235Z", "last_modified": "2023-11-22T08:36:51.092219Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9080/?format=api", "id": 9080, "code": "TS21", "parameter": "Fe2+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:51.172311Z", "last_modified": "2023-11-22T08:36:51.172296Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9081/?format=api", "id": 9081, "code": "TS129", "parameter": "Cặn tổng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:51.304475Z", "last_modified": "2023-11-22T08:36:51.304458Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9082/?format=api", "id": 9082, "code": "TS26", "parameter": "DDTs", "unit": "µg/I", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:51.305677Z", "last_modified": "2023-11-22T08:36:51.305662Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9083/?format=api", "id": 9083, "code": "TS138", "parameter": "Endrin aldehyde", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:51.307564Z", "last_modified": "2023-11-22T08:36:51.307549Z" } ] }