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=772
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=773", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=771", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8752/?format=api", "id": 8752, "code": "WNS8863", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.221294Z", "last_modified": "2023-04-26T14:03:05.221285Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8753/?format=api", "id": 8753, "code": "WNS8864", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.225769Z", "last_modified": "2023-04-26T14:03:05.225760Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8754/?format=api", "id": 8754, "code": "WNS8865", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.231970Z", "last_modified": "2023-04-26T14:03:05.231961Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8755/?format=api", "id": 8755, "code": "WNS8866", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.238767Z", "last_modified": "2023-04-26T14:03:05.238758Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8756/?format=api", "id": 8756, "code": "WNS8867", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.244982Z", "last_modified": "2023-04-26T14:03:05.244974Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8757/?format=api", "id": 8757, "code": "WNS8868", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.249445Z", "last_modified": "2023-04-26T14:03:05.249437Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8758/?format=api", "id": 8758, "code": "WNS8870", "parameter": "", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-04-26T14:03:05.254581Z", "last_modified": "2023-04-26T14:03:05.254573Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8759/?format=api", "id": 8759, "code": "BHC", "parameter": "BHC", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-04T04:09:53.593285Z", "last_modified": "2023-05-04T04:09:53.593271Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8760/?format=api", "id": 8760, "code": "As", "parameter": "As", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T04:39:31.618969Z", "last_modified": "2023-05-09T04:39:31.618948Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8761/?format=api", "id": 8761, "code": "DDTs", "parameter": "DDTs", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T05:03:29.067865Z", "last_modified": "2023-05-09T05:03:29.067848Z" } ] }{ "count": 8139, "next": "