{
"components": [
{
"componentType": "chart",
"name": "string",
"componentId": "string",
"parentSectionId": "string",
"parentTabId": "string",
"position": {
"x": 0,
"y": 0,
"w": 0,
"h": 0
},
"config": {
"title": "string",
"content": "string",
"url": "string",
"worksheetId": "string",
"viewId": "string",
"objectId": "string",
"chartType": "string",
"dataScope": "string",
"timeFieldId": "string",
"timeRange": "string",
"customDynamicRange": {
"from": {
"type": "string",
"value": 0,
"unit": "string"
},
"to": {
"type": "string",
"value": 0,
"unit": "string"
}
},
"customRange": {
"startDate": "string",
"endDate": "string"
},
"dimension": [
{
"field": "string",
"granularity": 0,
"includeEmpty": true
}
],
"rows": [
{
"field": "string"
}
],
"columns": [
{
"field": "string"
}
],
"values": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"rightValues": [
{
"field": "string",
"aggregation": "string"
}
],
"targetValues": [
{
"field": "string",
"aggregation": "string"
}
],
"gaugeMin": "string",
"gaugeMax": "string",
"mapScope": "country",
"mapRegionCode": "string",
"filtersGroupId": "string",
"name": "string",
"enableBtn": true,
"filters": [
{
"filterId": "string",
"name": "string",
"global": true,
"dataType": 0,
"filterType": 0,
"objectControls": [
{
"objectId": "string",
"type": 0,
"worksheetId": "string",
"controlId": "string"
}
],
"advancedSetting": {},
"values": [
"string"
],
"value": "string",
"minValue": "string",
"maxValue": "string",
"controlId": "string"
}
],
"appId": "string",
"customPageId": "string",
"filter": {
"type": "group",
"logic": "AND",
"children": [
{}
],
"field": "string",
"operator": "eq",
"value": "string"
},
"sorts": [
{
"field": "string",
"isAsc": true
}
],
"limit": 0,
"image": "string",
"subTitle": "string",
"count": 0,
"action": 0,
"openMode": 0,
"explain": "string",
"style": 0,
"width": 0,
"mobileCount": 0,
"buttons": [
{
"name": "string",
"action": 0,
"value": "string",
"viewId": "string",
"openMode": 0,
"color": "string",
"icon": "string"
}
],
"tabs": [
{
"tabId": "string",
"name": "string"
}
],
"showName": true,
"showType": 0,
"showBorder": true,
"heightType": 0
}
}
]
}curl --location --request PUT 'https://api.mingdao.com/v3/app/custom-pages/' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data '{
"components": [
{
"componentType": "chart",
"name": "string",
"componentId": "string",
"parentSectionId": "string",
"parentTabId": "string",
"position": {
"x": 0,
"y": 0,
"w": 0,
"h": 0
},
"config": {
"title": "string",
"content": "string",
"url": "string",
"worksheetId": "string",
"viewId": "string",
"objectId": "string",
"chartType": "string",
"dataScope": "string",
"timeFieldId": "string",
"timeRange": "string",
"customDynamicRange": {
"from": {
"type": "string",
"value": 0,
"unit": "string"
},
"to": {
"type": "string",
"value": 0,
"unit": "string"
}
},
"customRange": {
"startDate": "string",
"endDate": "string"
},
"dimension": [
{
"field": "string",
"granularity": 0,
"includeEmpty": true
}
],
"rows": [
{
"field": "string"
}
],
"columns": [
{
"field": "string"
}
],
"values": [
{
"field": "string",
"aggregation": "string",
"displayName": "string"
}
],
"rightValues": [
{
"field": "string",
"aggregation": "string"
}
],
"targetValues": [
{
"field": "string",
"aggregation": "string"
}
],
"gaugeMin": "string",
"gaugeMax": "string",
"mapScope": "country",
"mapRegionCode": "string",
"filtersGroupId": "string",
"name": "string",
"enableBtn": true,
"filters": [
{
"filterId": "string",
"name": "string",
"global": true,
"dataType": 0,
"filterType": 0,
"objectControls": [
{
"objectId": "string",
"type": 0,
"worksheetId": "string",
"controlId": "string"
}
],
"advancedSetting": {},
"values": [
"string"
],
"value": "string",
"minValue": "string",
"maxValue": "string",
"controlId": "string"
}
],
"appId": "string",
"customPageId": "string",
"filter": {
"type": "group",
"logic": "AND",
"children": [
{}
],
"field": "string",
"operator": "eq",
"value": "string"
},
"sorts": [
{
"field": "string",
"isAsc": true
}
],
"limit": 0,
"image": "string",
"subTitle": "string",
"count": 0,
"action": 0,
"openMode": 0,
"explain": "string",
"style": 0,
"width": 0,
"mobileCount": 0,
"buttons": [
{
"name": "string",
"action": 0,
"value": "string",
"viewId": "string",
"openMode": 0,
"color": "string",
"icon": "string"
}
],
"tabs": [
{
"tabId": "string",
"name": "string"
}
],
"showName": true,
"showType": 0,
"showBorder": true,
"heightType": 0
}
}
]
}'{
"success": true,
"data": {
"page_id": "page_001",
"components": [
{
"componentId": "6800aa..."
},
{
"componentId": "6800bb..."
}
]
}
}