Endpoint
/api/v2/tenants/{tenantId}/customFields/{classCode}
Path Parameters
tenantId
string

classCode
string

Responses

OK

[
  {
    "classCode": "CHANGE",
    "defaultValue": "2",
    "description": "Status of incident ",
    "displayLabel": "Status",
    "editable": true,
    "fieldType": "TYPE_DROPDOWN",
    "id": "UDF0000003790",
    "mandatory": false,
    "name": "drop_down_api_lab_3790",
    "options": [
      {
        "label": "Open",
        "value": "1"
      },
      {
        "label": "In Progress",
        "value": "2"
      }
    ]
  },
  {
    "classCode": "CHANGE",
    "defaultValue": "sample text",
    "description": "Test case for text field",
    "displayLabel": "Component",
    "editable": true,
    "fieldType": "TYPE_TEXT",
    "id": "UDF0000003791",
    "mandatory": false,
    "name": "text_api_lab_3791"
  },
  {
    "classCode": "CHANGE",
    "defaultValue": "sample text",
    "description": "Test case for multi line text",
    "displayLabel": "Summary",
    "editable": true,
    "fieldType": "TYPE_TEXTAREA",
    "id": "UDF0000003792",
    "mandatory": false,
    "name": "multi_line_text_api_lab_3792"
  },
  {
    "classCode": "CHANGE",
    "defaultValue": "5",
    "description": "Numeric test case",
    "displayLabel": "Version",
    "editable": true,
    "fieldType": "TYPE_NUMBER",
    "id": "UDF0000003793",
    "mandatory": false,
    "name": "numeric_api_lab_3793"
  },
  {
    "classCode": "CHANGE",
    "description": "Test case for check box",
    "displayLabel": "Active",
    "editable": true,
    "fieldType": "TYPE_CHECKBOX",
    "id": "UDF0000003794",
    "mandatory": false,
    "name": "checkbox_api_lab_3794",
    "options": [
      {
        "label": "yes",
        "value": "1"
      }
    ]
  },
  {
    "classCode": "CHANGE",
    "description": "Test case for date field",
    "displayLabel": "Reported on",
    "editable": true,
    "fieldType": "TYPE_DATE",
    "id": "UDF0000003795",
    "mandatory": false,
    "name": "date_ap_lab_3795"
  },
  {
    "classCode": "CHANGE",
    "defaultValue": "2016-04-24 10:19",
    "description": "Test case for Date and time",
    "displayLabel": "Reported time",
    "editable": true,
    "fieldType": "TYPE_DATETIME",
    "id": "UDF0000003796",
    "mandatory": false,
    "name": "datetime_api_lab_3796"
  }
]