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=15
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=16", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=14", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/418/?format=api", "id": 418, "code": "Q (m3)", "parameter": "Debiet", "unit": "m3", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2015-09-11T08:05:52.238781Z", "last_modified": "2020-03-20T18:51:14.733466Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/419/?format=api", "id": 419, "code": "AANWZHTXSBAV (m)", "parameter": "AANWZHTXSBAV", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:05:54.153925Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/420/?format=api", "id": 420, "code": "Stability () BS", "parameter": "Stability", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:05:54.731649Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/421/?format=api", "id": 421, "code": "ZICHT (m)", "parameter": "Zicht", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:05:55.979761Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/422/?format=api", "id": 422, "code": "HOOGTE (cm)", "parameter": "HOOGTE", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:05:57.054353Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/423/?format=api", "id": 423, "code": "WATR (dm)", "parameter": "WATR", "unit": "dm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:06:02.883887Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/424/?format=api", "id": 424, "code": "HOOGTE (m) BS", "parameter": "HOOGTE", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:06:08.832822Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/425/?format=api", "id": 425, "code": "HOOGTE (m) OW", "parameter": "HOOGTE", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:06:08.939328Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/426/?format=api", "id": 426, "code": "NEERSG (mm) BS", "parameter": "Neerslag", "unit": "mm", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:06:08.971866Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/427/?format=api", "id": 427, "code": "X_CODNT (m)", "parameter": "X_CODNT", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:06:10.925739Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "