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=795
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=796", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=794", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8984/?format=api", "id": 8984, "code": "TS29", "parameter": "α", "unit": "Bq/I", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:44.644757Z", "last_modified": "2023-11-22T08:36:44.644743Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8985/?format=api", "id": 8985, "code": "TS3", "parameter": "TDS", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.289552Z", "last_modified": "2023-11-22T08:36:46.289533Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8986/?format=api", "id": 8986, "code": "TS5", "parameter": "N_NH4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.328085Z", "last_modified": "2023-11-22T08:36:46.328070Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8987/?format=api", "id": 8987, "code": "TS30", "parameter": "β", "unit": "Bq/I", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.601132Z", "last_modified": "2023-11-22T08:36:46.601119Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8988/?format=api", "id": 8988, "code": "TS31", "parameter": "Coliform", "unit": "MPN hoặc CFU/100 ml", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.605251Z", "last_modified": "2023-11-22T08:36:46.605235Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8989/?format=api", "id": 8989, "code": "TS33", "parameter": "BOD5", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.657094Z", "last_modified": "2023-11-22T08:36:46.657080Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8990/?format=api", "id": 8990, "code": "TS32", "parameter": "E.Coli", "unit": "MPN hoặc CFU/100 ml", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.658927Z", "last_modified": "2023-11-22T08:36:46.658913Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8991/?format=api", "id": 8991, "code": "TS35", "parameter": "DO", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.660283Z", "last_modified": "2023-11-22T08:36:46.660268Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8992/?format=api", "id": 8992, "code": "TS37", "parameter": "P_PO4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.662356Z", "last_modified": "2023-11-22T08:36:46.662341Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8993/?format=api", "id": 8993, "code": "TS36", "parameter": "TSS", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:46.663207Z", "last_modified": "2023-11-22T08:36:46.663179Z" } ] }{ "count": 8132, "next": "