fields array must provide description and help as non-empty strings: omitting either one returns a 400 error. The type field must belong to the closed set of 27 values accepted by the API; sending a type outside this set (or omitting it) returns a 400 error listing every accepted value. When the field type is select or checkList, the options in options must be sent as a plain list of strings, never as objects with separate label and value.index and name of each field must be unique within the array sent in this call — duplicate values return an error.curl --location '/v1/client-config' \
--header 'Content-Type: application/json' \
--data '{
"companyId": "string",
"fields": [
{
"name": "string",
"type": "shortText",
"index": 0,
"required": true,
"editable": true,
"category": "default",
"description": "string",
"help": "string",
"options": [
"string"
],
"variant": 0,
"section": {
"id": "string",
"index": 0
}
}
]
}'{
"id": "string",
"companyId": "string",
"fields": [
{
"id": "string",
"name": "string",
"type": "shortText",
"index": 0,
"required": true,
"editable": true,
"category": "default",
"description": "string",
"help": "string",
"options": [
"string"
],
"variant": 0,
"section": {
"id": "string",
"index": 0
},
"slug": "string",
"uiComponent": "string"
}
]
}