---
title: "Asynchronously gets the BDMS.Models.Codelists, optionally filtered by schema."
method: GET
path: "/api/v{version}/codelist"
tags: ["CodeList"]
---

# Asynchronously gets the BDMS.Models.Codelists, optionally filtered by schema.

`GET /api/v{version}/codelist`

## Path parameters

- `version` string, required

## Query parameters

- `schema` string
- `testKindIds` integer[]

## Response `200`

OK

- Codelist[]
  - `id` integer, required
  - `geolcode` integer, nullable — Gets or sets the BDMS.Models.Codelist's geolcode.
  - `schema` string, nullable — Gets or sets the BDMS.Models.Codelist's schema.
  - `code` string — Gets or sets the BDMS.Models.Codelist's code.
  - `en` string — Gets or sets the BDMS.Models.Codelist's english text.
  - `de` string, nullable — Gets or sets the BDMS.Models.Codelist's german text.
  - `fr` string, nullable — Gets or sets the BDMS.Models.Codelist 's french text.
  - `it` string, nullable — Gets or sets the BDMS.Models.Codelist's italian text.
  - `ro` string, nullable — Gets or sets the BDMS.Models.Codelist's romantsch text.
  - `order` integer, nullable — Gets or sets the BDMS.Models.Codelist's order.
  - `conf` string, nullable — Gets or sets the BDMS.Models.Codelist's configuration.
  - `isDefault` boolean, nullable — Gets or sets whether the BDMS.Models.Codelist is default.
  - `path` LTree
    - `nLevel` integer

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/versions/e6d0b4ee0f52/schema)
