Filter ID

A filter is a saved selection in the web app: for example the areas whose name or attribute values match some conditions. Some endpoints, such as POST /v2.0/container/all, take a filter_id to return only what the filter selects.

To list your saved filters (reference):

curl https://app-api.geposit.se/v2.0/filter/ \
  --header 'x-api-key: {API_KEY}'
[
  {
    "id": "FILTER_ID",
    "name": "Sales areas north",
    "type": "container",
    "filter": {
      "container_name": "north",
      "layer_name": "",
      "attributes": [],
      "labels": [],
      "regions": [],
      "container_ids": [],
      "county_name": "",
      "municipality_name": "",
      "locality": ""
    },
    "created_at": "2024-05-24T12:23:07.925475Z"
  }
]

(Shortened.) id is the filter ID. type says what the filter selects: container (areas), point or container_point.


Did this page help you?