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=10
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=11", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=9", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/368/?format=api", "id": 368, "code": "DRUK () OW", "parameter": "Druk", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:04:34.653897Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/369/?format=api", "id": 369, "code": "T ()", "parameter": "Temperatuur", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:35.388480Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/370/?format=api", "id": 370, "code": "AANTL (cm)", "parameter": "Aantal", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:37.417873Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/371/?format=api", "id": 371, "code": "Go-100 mHz (cm) OW", "parameter": "Go-100 mHz", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:04:38.144206Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/372/?format=api", "id": 372, "code": "AANTL (%)", "parameter": "Aantal", "unit": "%", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:38.209526Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/373/?format=api", "id": 373, "code": "Golfrichtin (graden)", "parameter": "Golfrichtin", "unit": "graden", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:38.902686Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/374/?format=api", "id": 374, "code": "STROOMSHD (m/s)", "parameter": "Stroomsnelheid", "unit": "m/s", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2015-09-11T08:04:39.157536Z", "last_modified": "2020-01-17T10:48:39.264861Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/375/?format=api", "id": 375, "code": "STROOMRTG (graad)", "parameter": "Stroomrichting", "unit": "graad", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2015-09-11T08:04:39.389758Z", "last_modified": "2020-01-17T10:59:55.648087Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/376/?format=api", "id": 376, "code": "BODHTE (cm) BS", "parameter": "Bodemhoogte", "unit": "cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "BS", "created": "2015-09-11T08:04:39.570926Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/377/?format=api", "id": 377, "code": "AANTL (mbar)", "parameter": "Aantal", "unit": "mbar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:39.706883Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "