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=803
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=804", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=802", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9064/?format=api", "id": 9064, "code": "TS107", "parameter": "Endosulfan", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.759736Z", "last_modified": "2023-11-22T08:36:50.759721Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9065/?format=api", "id": 9065, "code": "TS106", "parameter": "Ni-trit", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.765936Z", "last_modified": "2023-11-22T08:36:50.765921Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9066/?format=api", "id": 9066, "code": "TS105", "parameter": "Nitrat", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.765765Z", "last_modified": "2023-11-22T08:36:50.765749Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9067/?format=api", "id": 9067, "code": "TS115", "parameter": "Ồn (dBA)3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.769399Z", "last_modified": "2023-11-22T08:36:50.769383Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9068/?format=api", "id": 9068, "code": "TS117", "parameter": "Furan", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.772234Z", "last_modified": "2023-11-22T08:36:50.772218Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9069/?format=api", "id": 9069, "code": "TS112", "parameter": "Dioxin", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.792882Z", "last_modified": "2023-11-22T08:36:50.792854Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9070/?format=api", "id": 9070, "code": "TS125", "parameter": "Sunfat", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.792909Z", "last_modified": "2023-11-22T08:36:50.792891Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9071/?format=api", "id": 9071, "code": "TS123", "parameter": "Malathion", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.792846Z", "last_modified": "2023-11-22T08:36:50.792832Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9072/?format=api", "id": 9072, "code": "TS110", "parameter": "Endrin", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.793091Z", "last_modified": "2023-11-22T08:36:50.793077Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9073/?format=api", "id": 9073, "code": "TS104", "parameter": "Độ kiềm", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.795974Z", "last_modified": "2023-11-22T08:36:50.795959Z" } ] }{ "count": 8132, "next": "