{
"envId": "string",
"dsId": "string",
"type": "string",
"name": "string",
"config": {
"dsId": "string",
"select": {
"sort": 0,
"multiple": true,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"singleSelect": {
"sort": 0,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"idConfig": {
"type": "CUSTOM",
"rules": [
{
"type": "DATE",
"length": 0,
"fixedCharacter": "string",
"dateFormat": "string"
}
]
},
"formula": {
"expression": "string"
},
"number": {
"accuracy": 0,
"prefix": "string",
"suffix": "string"
},
"date": {
"format": "string"
},
"person": {
"multiple": true
},
"join": {
"joinDsId": "string",
"joinFieldId": "string"
}
},
"beforeId": "string"
}
curl --location --request POST '/lighthouse/admin/api/v1/ds/createField' \
--header 'Lang: zh-CN' \
--header 'B-App-Id: {{B-App-Id}}' \
--header 'B-App-User-Id: {{B-App-User-Id}}' \
--header 'B-Origin-Domain: {{B-Origin-Domain}}' \
--header 'Cookie: {{Cookie}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"envId": "string",
"dsId": "string",
"type": "string",
"name": "string",
"config": {
"dsId": "string",
"select": {
"sort": 0,
"multiple": true,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"singleSelect": {
"sort": 0,
"options": [
{
"label": "string",
"color": "string",
"id": "string"
}
]
},
"idConfig": {
"type": "CUSTOM",
"rules": [
{
"type": "DATE",
"length": 0,
"fixedCharacter": "string",
"dateFormat": "string"
}
]
},
"formula": {
"expression": "string"
},
"number": {
"accuracy": 0,
"prefix": "string",
"suffix": "string"
},
"date": {
"format": "string"
},
"person": {
"multiple": true
},
"join": {
"joinDsId": "string",
"joinFieldId": "string"
}
},
"beforeId": "string"
}'
{
"success": true,
"msg": "string",
"code": "string",
"content": {
"fieldId": "string",
"innerType": "string"
}
}