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=21
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=22", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=20", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/489/?format=api", "id": 489, "code": "AGRI_Discoloration", "parameter": "Discoloration", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-10T20:31:48.528613Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/490/?format=api", "id": 490, "code": "AGRI_Spiders", "parameter": "Spiders", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-10T20:32:18.845101Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/491/?format=api", "id": 491, "code": "AGRI_Snails", "parameter": "Snails", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-10T20:32:38.589235Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/492/?format=api", "id": 492, "code": "AGRI_Leaffolder", "parameter": "Leaffolder", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-10T20:32:57.089394Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/493/?format=api", "id": 493, "code": "AGRI_BPH", "parameter": "Brown Plant Hopper Risk", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-10T20:33:16.954615Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/494/?format=api", "id": 494, "code": "ricemask", "parameter": "Rice Mask", "unit": "availability", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-24T10:48:31.829275Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/495/?format=api", "id": 495, "code": "ricestage", "parameter": "Rice Growth Stage", "unit": "growth stage", "scale": "ordinal", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-03-24T10:49:31.327345Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/496/?format=api", "id": 496, "code": "annotation", "parameter": "Annotatie", "unit": "", "scale": "nominal", "description": "PRU for annotations layer", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-04-12T07:18:44.431768Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/497/?format=api", "id": 497, "code": "Elevation", "parameter": "Elevation", "unit": "meter", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2016-04-12T12:12:59.139629Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/498/?format=api", "id": 498, "code": "Q.advies", "parameter": "Debiet (advies)", "unit": "m3/s", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2016-04-13T10:15:54.254371Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "