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
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=2", "previous": null, "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/2/?format=api", "id": 2, "code": "H.meting", "parameter": "Waterhoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/3/?format=api", "id": 3, "code": "Q.meting", "parameter": "Debiet", "unit": "m3/s", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "OW", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2020-03-20T18:51:58.228287Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/5/?format=api", "id": 5, "code": "WNS1165", "parameter": "In bedrijf", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "NT", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/6/?format=api", "id": 6, "code": "WNS1400.1d", "parameter": "Neerslag (dagelijks)", "unit": "mm", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": null, "compartment": "NT", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/7/?format=api", "id": 7, "code": "WNS1400.1h", "parameter": "Neerslag", "unit": "mm", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": null, "compartment": "NT", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2021-02-15T15:03:11.838549Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8/?format=api", "id": 8, "code": "WNS2184", "parameter": "Waterhoogte", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "OW", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9/?format=api", "id": 9, "code": "WNS2368", "parameter": "Debiet", "unit": "m3/h", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "AW", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2020-03-20T18:50:25.668285Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/10/?format=api", "id": 10, "code": "WNS3832", "parameter": "Luchttemperatuur", "unit": "oC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "LT", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/11/?format=api", "id": 11, "code": "WNS6871", "parameter": "Debiet", "unit": "m3/d", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "AW", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2020-03-20T18:50:15.652523Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/12/?format=api", "id": 12, "code": "WNS8487", "parameter": "Waterhoogte", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "NAP", "compartment": "OW", "created": "2015-06-19T09:47:29.345611Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "