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=774
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=775", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=773", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8772/?format=api", "id": 8772, "code": "Hg", "parameter": "Hg", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T10:48:01.109047Z", "last_modified": "2023-05-09T10:48:01.109033Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8773/?format=api", "id": 8773, "code": "DO", "parameter": "DO", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-10T02:58:59.343724Z", "last_modified": "2023-05-10T02:58:59.343709Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8774/?format=api", "id": 8774, "code": "BOD5", "parameter": "BOD5", "unit": "mgO2/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-10T03:24:37.623402Z", "last_modified": "2023-05-10T03:24:37.623386Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8775/?format=api", "id": 8775, "code": "COD", "parameter": "COD", "unit": "mgO2/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-10T04:18:32.507453Z", "last_modified": "2023-05-10T04:18:32.507427Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8776/?format=api", "id": 8776, "code": "TOC", "parameter": "TOC", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-10T05:15:49.594308Z", "last_modified": "2023-05-10T05:15:49.594294Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8778/?format=api", "id": 8778, "code": "N-NO2", "parameter": "N-NO2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-11T02:52:31.958277Z", "last_modified": "2023-05-11T02:52:31.958263Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8779/?format=api", "id": 8779, "code": "P-PO4", "parameter": "P-PO4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-11T03:57:06.116824Z", "last_modified": "2023-05-11T03:57:06.116810Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8780/?format=api", "id": 8780, "code": "Coliform", "parameter": "Coliform", "unit": "MPN/100mg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-11T04:09:58.684728Z", "last_modified": "2023-05-11T04:09:58.684712Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8782/?format=api", "id": 8782, "code": "E.coli.", "parameter": "E.coli.", "unit": "MPN/100mg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-11T04:44:28.966024Z", "last_modified": "2023-05-11T04:44:28.966008Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8783/?format=api", "id": 8783, "code": "TSS", "parameter": "TSS", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-11T05:04:48.969914Z", "last_modified": "2023-05-11T05:04:48.969898Z" } ] }{ "count": 8137, "next": "