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=790
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=791", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=789", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8934/?format=api", "id": 8934, "code": "Trans chlordane", "parameter": "Trans chlordane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.850382Z", "last_modified": "2023-11-22T07:35:13.850353Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8935/?format=api", "id": 8935, "code": "Endrin aldehyde", "parameter": "Endrin aldehyde", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.849750Z", "last_modified": "2023-11-22T07:35:13.849735Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8936/?format=api", "id": 8936, "code": "DDD", "parameter": "DDD", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.852364Z", "last_modified": "2023-11-22T07:35:13.852338Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8937/?format=api", "id": 8937, "code": "Cis chlordane", "parameter": "Cis chlordane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.857247Z", "last_modified": "2023-11-22T07:35:13.857226Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8938/?format=api", "id": 8938, "code": "Endosunfan sulfate", "parameter": "Endosunfan sulfate", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.116475Z", "last_modified": "2023-11-22T07:35:14.116459Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8939/?format=api", "id": 8939, "code": "Phosphate", "parameter": "Phosphate", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.121133Z", "last_modified": "2023-11-22T07:35:14.121119Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8940/?format=api", "id": 8940, "code": "Oxy-Chlorodane", "parameter": "Oxy-Chlorodane", "unit": "mg/L", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.125904Z", "last_modified": "2023-11-22T07:35:14.125889Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8941/?format=api", "id": 8941, "code": "Heptaclor", "parameter": "Heptaclor", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.126849Z", "last_modified": "2023-11-22T07:35:14.126834Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8942/?format=api", "id": 8942, "code": "Dầu mỡ khoáng", "parameter": "Dầu mỡ khoáng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.130273Z", "last_modified": "2023-11-22T07:35:14.130253Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8943/?format=api", "id": 8943, "code": "Dư lượng thuốc BVTV gốc Clo3", "parameter": "Dư lượng thuốc BVTV gốc Clo3", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:14.130657Z", "last_modified": "2023-11-22T07:35:14.130635Z" } ] }{ "count": 8132, "next": "