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=29
{ "count": 8137, "next": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=30", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=28", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/569/?format=api", "id": 569, "code": "dRBF", "parameter": "Robusta, Bean, Farmgate Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:32:19.233505Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/570/?format=api", "id": 570, "code": "dRCA", "parameter": "Robusta, Cherry, Agent Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:32:34.505457Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/571/?format=api", "id": 571, "code": "dRCC", "parameter": "Robusta, Cherry, Company Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:32:45.183302Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/572/?format=api", "id": 572, "code": "dRCE", "parameter": "Robusta, Cherry, Export Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:32:56.248847Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/573/?format=api", "id": 573, "code": "dRCF", "parameter": "Robusta, Cherry, Farmgate Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:33:03.657416Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/574/?format=api", "id": 574, "code": "CropSuitability", "parameter": "Crop suitability", "unit": "suitable", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2017-01-25T09:57:44.948618Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/575/?format=api", "id": 575, "code": "DU.totaal", "parameter": "Draaiuurtotaal", "unit": "uur", "scale": "ratio", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-27T17:22:26.564321Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/576/?format=api", "id": 576, "code": "Energieperkuub", "parameter": "Energie per m3", "unit": "kWh/m3", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-27T17:26:36.103151Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/577/?format=api", "id": 577, "code": "ricerotation", "parameter": "Rice Crop Rotation", "unit": "Cropping pattern", "scale": "ordinal", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-30T08:41:48.221394Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/578/?format=api", "id": 578, "code": "DU.vgl", "parameter": "Draaiuurvergelijking", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-30T10:30:22.955374Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }