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=30
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=31", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=29", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/579/?format=api", "id": 579, "code": "CE", "parameter": "Acanthoceras zachariasii", "unit": "n/ml", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": "OW", "created": "2017-02-07T13:11:19.736301Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/779/?format=api", "id": 779, "code": "PHIHOX", "parameter": "pH * 10 in H2O", "unit": "Soil pH", "scale": "interval", "description": "Soil pH x 10 in H2O", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-06T09:40:32.731888Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/780/?format=api", "id": 780, "code": "ORCDRC", "parameter": "Organic Carbon Content", "unit": "g/kg", "scale": "interval", "description": "Organic Carbon Content", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-06T09:44:09.081114Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/781/?format=api", "id": 781, "code": "DWA-afwijking", "parameter": "DWA-afwijking", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "AW", "created": "2017-03-06T10:04:55.936002Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/782/?format=api", "id": 782, "code": "BPHDensity", "parameter": "Brown Plant Hopper Density", "unit": "BPH/m2", "scale": "ratio", "description": "Density of Brown plant hopper", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-13T20:56:38.172453Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/784/?format=api", "id": 784, "code": "pestcost", "parameter": "Pesticide cost (VND)", "unit": "", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-16T07:19:08.593829Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/785/?format=api", "id": 785, "code": "fertcost", "parameter": "Fertilizer cost (VND)", "unit": "", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-16T10:53:48.110885Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/786/?format=api", "id": 786, "code": "sowcost", "parameter": "Sowing cost (VND)", "unit": "", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-16T10:58:10.252828Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/787/?format=api", "id": 787, "code": "harvcost", "parameter": "Harvesting cost (VND)", "unit": "", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-16T10:58:35.066927Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/788/?format=api", "id": 788, "code": "photo_overview", "parameter": "Overview picture", "unit": "", "scale": "nominal", "description": "G4AW image timeseries", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-03-16T14:23:41.277440Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8137, "next": "