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=773
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=774", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=772", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8762/?format=api", "id": 8762, "code": "Cd", "parameter": "Cd", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T05:07:39.095749Z", "last_modified": "2023-05-09T05:07:39.095733Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8763/?format=api", "id": 8763, "code": "Heptachlor", "parameter": "Heptachlor", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T05:21:25.243494Z", "last_modified": "2023-05-09T05:21:25.243479Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8764/?format=api", "id": 8764, "code": "Pb", "parameter": "Pb", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T05:41:17.113019Z", "last_modified": "2023-05-09T05:41:17.113006Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8765/?format=api", "id": 8765, "code": "Heptachlorepoxide", "parameter": "Heptachlorepoxide", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T05:42:37.015873Z", "last_modified": "2023-05-09T05:42:37.015854Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8766/?format=api", "id": 8766, "code": "Heptachlorepoxide.", "parameter": "Heptachlorepoxide.", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T05:43:07.767992Z", "last_modified": "2023-05-09T05:43:07.767977Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8767/?format=api", "id": 8767, "code": "Cr6", "parameter": "Cr6", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T07:24:14.230621Z", "last_modified": "2023-05-09T07:24:14.230605Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8768/?format=api", "id": 8768, "code": "N-NH4", "parameter": "N-NH4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T07:33:48.006272Z", "last_modified": "2023-05-09T07:33:48.006256Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8769/?format=api", "id": 8769, "code": "N-NO3", "parameter": "N-NO3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T07:46:23.892879Z", "last_modified": "2023-05-09T07:46:23.892862Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8770/?format=api", "id": 8770, "code": "Cu", "parameter": "Cu", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T09:08:13.992259Z", "last_modified": "2023-05-09T09:08:13.992242Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8771/?format=api", "id": 8771, "code": "Zn", "parameter": "Zn", "unit": "ug/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-05-09T09:51:56.383820Z", "last_modified": "2023-05-09T09:51:56.383804Z" } ] }{ "count": 8139, "next": "