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=38
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=39", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=37", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/862/?format=api", "id": 862, "code": "GHG_mv", "parameter": "GHG", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "-MV", "compartment": "GW", "created": "2017-09-12T09:59:13.062841Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/863/?format=api", "id": 863, "code": "GLG_mv", "parameter": "GLG", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "-MV", "compartment": "GW", "created": "2017-09-12T10:01:40.033301Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/864/?format=api", "id": 864, "code": "ph_soil", "parameter": "pH in soil", "unit": "pH", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-09-13T09:21:23.806644Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/865/?format=api", "id": 865, "code": "WNS925.cum", "parameter": "Draaitijd totaal", "unit": "h", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "NT", "created": "2017-09-15T12:29:28.852114Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/866/?format=api", "id": 866, "code": "WNS10228.cum", "parameter": "Volume totaal", "unit": "m3", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "AW", "created": "2017-09-15T12:32:45.987482Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/867/?format=api", "id": 867, "code": "WNS918", "parameter": "Draaitijd", "unit": "min", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "NT", "created": "2017-09-15T12:35:27.777982Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/868/?format=api", "id": 868, "code": "WNS1165.cum", "parameter": "Schakelingen totaal", "unit": "aantal", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "NT", "created": "2017-09-15T12:47:52.054827Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/869/?format=api", "id": 869, "code": "ResetsModem", "parameter": "Resets modem", "unit": "aantal", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-09-15T12:53:39.216286Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/870/?format=api", "id": 870, "code": "AansturingPomp", "parameter": "Aansturing", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-09-15T12:57:11.989321Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/871/?format=api", "id": 871, "code": "lai", "parameter": "Leaf area index", "unit": "index", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-09-25T18:18:15.909125Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8137, "next": "