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.

Examples

?code=27234

?parameter__icontains=In bedrijf

?unit__iexact=m3/d

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/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS, POST
Content-Type: application/json
Vary: Accept

{
    "count": 7486,
    "next": "https://demo.lizard.net/api/v4/observationtypes/?page=2",
    "previous": null,
    "results": [
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/824/",
            "id": 824,
            "code": "Waterlevel(mLGH)",
            "parameter": "Water level",
            "unit": "m",
            "scale": "interval",
            "description": "Parramatta",
            "domain_values": null,
            "reference_frame": "LGH",
            "compartment": ""
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/6210/",
            "id": 6210,
            "code": "soil texture",
            "parameter": "soil texture",
            "unit": "",
            "scale": "nominal",
            "description": "soil texture",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/826/",
            "id": 826,
            "code": "Trend",
            "parameter": "Trend",
            "unit": "",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "",
            "compartment": ""
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/6211/",
            "id": 6211,
            "code": "acceleration",
            "parameter": "acceleration",
            "unit": "m/s²",
            "scale": "ratio",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/845/",
            "id": 845,
            "code": "Elevation(mMSL)",
            "parameter": "Elevation",
            "unit": "m",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "MSL",
            "compartment": ""
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/6212/",
            "id": 6212,
            "code": "return period",
            "parameter": "return period",
            "unit": "years",
            "scale": "interval",
            "description": "return period in years",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/6213/",
            "id": 6213,
            "code": "Duur.uur",
            "parameter": "Duur in uren",
            "unit": "uur",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": null,
            "compartment": null
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/8385/",
            "id": 8385,
            "code": "ZZL99012",
            "parameter": "Total Residual Phosfor",
            "unit": "mg/l",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "P",
            "compartment": "OW"
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/851/",
            "id": 851,
            "code": "Density",
            "parameter": "Density",
            "unit": "Kg / Ha",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "",
            "compartment": ""
        },
        {
            "url": "https://demo.lizard.net/api/v4/observationtypes/852/",
            "id": 852,
            "code": "CLOUDC",
            "parameter": "Cloud cover",
            "unit": "%",
            "scale": "interval",
            "description": "",
            "domain_values": null,
            "reference_frame": "",
            "compartment": ""
        }
    ]
}