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=28
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=29", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=27", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/559/?format=api", "id": 559, "code": "dABC", "parameter": "Arabica,Bean,Company Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:29:52.590292Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/560/?format=api", "id": 560, "code": "dABE", "parameter": "Arabica,Bean,ExportPrice", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:30:04.978544Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/561/?format=api", "id": 561, "code": "dABF", "parameter": "Arabica,Bean,Farmgate Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:30:21.424691Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/562/?format=api", "id": 562, "code": "dACA", "parameter": "Arabica,Cherry,Agent Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:30:35.130130Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/563/?format=api", "id": 563, "code": "dACC", "parameter": "Arabica,Cherry,Company Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:30:52.497314Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/564/?format=api", "id": 564, "code": "dACE", "parameter": "Arabica,Cherry,Export Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:31:05.719800Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/565/?format=api", "id": 565, "code": "dACF", "parameter": "Arabica,Cherry,Farmgate Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:31:19.427616Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/566/?format=api", "id": 566, "code": "dRBA", "parameter": "Robusta, Bean, Agent Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:31:38.080035Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/567/?format=api", "id": 567, "code": "dRBC", "parameter": "Robusta, Bean, Company Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:32:00.242149Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/568/?format=api", "id": 568, "code": "dRBE", "parameter": "Robusta, Bean, Export Price", "unit": "d/kg", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2017-01-24T15:32:10.387730Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "