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=27
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=28", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=26", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/549/?format=api", "id": 549, "code": "TAVG", "parameter": "Temperature", "unit": "°C", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2016-11-24T12:15:28.253800Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/550/?format=api", "id": 550, "code": "Plant Height", "parameter": "Plant Height", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-11-28T16:00:57.715128Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/551/?format=api", "id": 551, "code": "Fertilizer Use", "parameter": "Fertilizer Use", "unit": "kg/ha", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-11-29T10:02:01.086518Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/552/?format=api", "id": 552, "code": "Pesticide Use", "parameter": "Pesticide Use", "unit": "ml/ha", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-11-29T10:04:33.212656Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/553/?format=api", "id": 553, "code": "pestcondition", "parameter": "Pest Condition", "unit": "Pest Condition", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-12-06T16:39:29.688051Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/554/?format=api", "id": 554, "code": "WNDSPD", "parameter": "Wind speed", "unit": "m/s", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2016-12-23T09:01:42.472149Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/555/?format=api", "id": 555, "code": "RHMIN", "parameter": "Relative Humidity Min", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-12-23T09:08:07.183404Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/556/?format=api", "id": 556, "code": "RHMAX", "parameter": "Relative Humidity Max", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-12-23T09:08:37.263834Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/557/?format=api", "id": 557, "code": "WNDDIR", "parameter": "Wind direction", "unit": "degree", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2017-01-04T09:36:58.357623Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/558/?format=api", "id": 558, "code": "dABA", "parameter": "Arabica,Bean,Agent Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:29:32.574531Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "