List data capture fields
GET
/data-capture-fieldsLists the fields users are asked for: the fields of every enabled data capture form that have a reference, one row per reference (when forms share one, which form's row is kept is not defined). It is a single list with no paging. Fields of disabled and internal_only forms are left out, even for an internal user. A row's reference is its key under data_capture on GET /investors/{id}. Use GET /data-capture-forms to manage the forms. It changes nothing.
Responses
{
"data": [
{
"reference": "nationality",
"label": "Nationality",
"name": "nationality",
"type": "TEXT",
"description": "As it appears on your passport.",
"placeholder": "e.g. United Kingdom",
"allowed_values": null,
"required": false
},
{
"reference": "investor_category",
"label": "Investor category",
"name": "investor_category",
"type": "DROPDOWN",
"description": null,
"placeholder": null,
"allowed_values": [
"retail",
"professional"
],
"required": true
}
]
}403Error
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
Examples
curl https://your-org-domain/kong/core/api/v2/data-capture-fields\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"