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=783
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=784", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=782", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8864/?format=api", "id": 8864, "code": "Clo", "parameter": "Clo", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.656464Z", "last_modified": "2023-11-22T07:35:11.656449Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8865/?format=api", "id": 8865, "code": "NaCl", "parameter": "NaCl", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.662850Z", "last_modified": "2023-11-22T07:35:11.662834Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8866/?format=api", "id": 8866, "code": "CO", "parameter": "CO", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.663569Z", "last_modified": "2023-11-22T07:35:11.663553Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8867/?format=api", "id": 8867, "code": "CHC", "parameter": "CHC", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.667073Z", "last_modified": "2023-11-22T07:35:11.667058Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8868/?format=api", "id": 8868, "code": "Photpho", "parameter": "Photpho", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.672923Z", "last_modified": "2023-11-22T07:35:11.672895Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8869/?format=api", "id": 8869, "code": "Dư lượng thuốc BVTV gốc Clo", "parameter": "Dư lượng thuốc BVTV gốc Clo", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.682551Z", "last_modified": "2023-11-22T07:35:11.682535Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8870/?format=api", "id": 8870, "code": "Tốc độ gió", "parameter": "Tốc độ gió", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.687441Z", "last_modified": "2023-11-22T07:35:11.687424Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8871/?format=api", "id": 8871, "code": "Cacbon hữu cơ", "parameter": "Cacbon hữu cơ", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.690810Z", "last_modified": "2023-11-22T07:35:11.690795Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8872/?format=api", "id": 8872, "code": "Nitơ", "parameter": "Nitơ", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.691056Z", "last_modified": "2023-11-22T07:35:11.691041Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8873/?format=api", "id": 8873, "code": "Độ trong", "parameter": "Độ trong", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.698924Z", "last_modified": "2023-11-22T07:35:11.698908Z" } ] }{ "count": 8132, "next": "