{
"views": [
{
"name": "string",
"type": "table",
"config": {
"groupField": "string",
"locationField": "string",
"relationField": "string",
"dates": [
{
"startField": "string",
"endField": "string"
}
],
"startField": "string",
"endField": "string",
"resourceField": "string",
"mode": "all"
},
"filter": {
"type": "group",
"logic": "AND",
"children": [
{}
],
"field": "string",
"operator": "eq",
"value": "string"
},
"sort": [
{
"fieldId": "string",
"sortType": 1
}
],
"color": {
"fieldId": "string"
},
"quickFilters": [
{
"fieldId": "string",
"selectionType": "single",
"displayType": "dropdown"
}
],
"hiddenFields": [
"string"
],
"tableFields": [
"string"
],
"filterList": {
"filterField": "string"
},
"card": {
"titleField": "string",
"summaryField": "string",
"coverField": "string",
"coverDirection": "top",
"coverDisplayMode": "full",
"displayFields": [
"string"
]
},
"actions": {
"detailActions": [
"string"
],
"quickActions": [
{
"type": "string",
"id": "string"
}
]
},
"group": {
"groupField": "string"
}
}
]
}curl --location 'https://api.mingdao.com/v3/app/worksheets//views/batch' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data '{
"views": [
{
"name": "string",
"type": "table",
"config": {
"groupField": "string",
"locationField": "string",
"relationField": "string",
"dates": [
{
"startField": "string",
"endField": "string"
}
],
"startField": "string",
"endField": "string",
"resourceField": "string",
"mode": "all"
},
"filter": {
"type": "group",
"logic": "AND",
"children": [
{}
],
"field": "string",
"operator": "eq",
"value": "string"
},
"sort": [
{
"fieldId": "string",
"sortType": 1
}
],
"color": {
"fieldId": "string"
},
"quickFilters": [
{
"fieldId": "string",
"selectionType": "single",
"displayType": "dropdown"
}
],
"hiddenFields": [
"string"
],
"tableFields": [
"string"
],
"filterList": {
"filterField": "string"
},
"card": {
"titleField": "string",
"summaryField": "string",
"coverField": "string",
"coverDirection": "top",
"coverDisplayMode": "full",
"displayFields": [
"string"
]
},
"actions": {
"detailActions": [
"string"
],
"quickActions": [
{
"type": "string",
"id": "string"
}
]
},
"group": {
"groupField": "string"
}
}
]
}'{
"success": true,
"data": {
"views": [
{
"id": "view_001",
"name": "任务看板",
"type": "kanban"
}
]
}
}