---
title: List enumeration items
slug: project-api/list-enumeration-items
docTags: 
createdAt: 2024-06-10T16:48:55.566Z
---

{
  "id": "uN8bJuGuj14HqkhaHIFoe",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/v2/projects/{project-id}/custom-fields/{custom-field-id}/enumeration-items",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/custom-fields/{custom-field-id}/enumeration-items"
      }
    ],
    "name": "List enumeration items",
    "description": "List all the enumeration items of a custom field.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        },
        {
          "kind": "required",
          "name": "custom-field-id",
          "type": "string",
          "description": "Id of the custom field"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "Represents a single custom field enumeration item.",
            "customType": "custom-field-enumeration[]",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "description": "Id of the enumeration item, represented as compacted UUID using 32 hexadecimal characters.",
                "example": "324409076a694255b589d236517a55da"
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "The name of the enumeration item.",
                "example": "Custom field name"
              },
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "The code of the enumeration item, value is unique for a custom field.",
                "example": "Item name"
              },
              {
                "name": "disabled",
                "kind": "optional",
                "type": "boolean",
                "description": "Whether the enumeration item is disabled.",
                "example": false
              }
            ],
            "modelRef": "#/components/schemas/custom-field-enumeration",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "YpPlSlupXMuakv66FsNbI",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/v2/projects/{project-id}/custom-fields/{custom-field-id}/enumeration-items \\\n     --header 'accept: application/json'"
        },
        {
          "id": "RHVMuMQ1c9xs3R3q3LXC1",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/v2/projects/{project-id}/custom-fields/{custom-field-id}/enumeration-items\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "1EjM7ht9-EnvkCsq2mTxf",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/custom-fields/{custom-field-id}/enumeration-items\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "IZtYTVHkr51hvBMAErUrE",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/custom-fields/{custom-field-id}/enumeration-items\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "YpPlSlupXMuakv66FsNbI"
    },
    "results": {
      "languages": [
        {
          "id": "o7nhjLh3duSuQ_pUWGtJv",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"id\": \"324409076a694255b589d236517a55da\",\n    \"name\": \"Custom field name\",\n    \"code\": \"Item name\",\n    \"disabled\": false\n  }\n]"
        }
      ],
      "selectedLanguageId": "o7nhjLh3duSuQ_pUWGtJv"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}