Create data dashboard¶
Create data dashboards and connect data sources.
POST $CLOUDSIGMA_API_BASE/data-dashboards
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and target workspace ID that can access the target workspace.
Request body¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/data-dashboards" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "销售概览",
"description": "按日查看销售数据",
"sources": [
{
"table_id": 1001
}
]
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Data dashboard name. Cannot be empty. |
|
string |
No |
Data dashboard description. Saves as an empty string when omitted. |
|
array of object |
Yes |
List of data sources. At least 1 items. |
|
integer |
When the object is provided |
Table ID. Not less than 1. |
sources Fill in the valid positive int64 table ID. After service deduplication, check the permissions item by item in the table. Kanban permissions are not a substitute for actual SQL permissions.
The complete name and sources still need to be submitted when updating. sources will be replaced as a whole, and omitting description will clear the description. If the ownership registration fails after creation, the kanban board may have been created. Please check and confirm first.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"ID": "0198ce73-3d20-7c12-9a11-1a2b3c4d5e6f",
"Name": "销售概览",
"Description": "按日查看销售数据",
"CreatedByRoleID": "role-001",
"CreatedAt": "2026-08-21T07:00:00Z",
"UpdatedAt": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
Data dashboard ID. |
|
string |
Data dashboard name. |
|
string |
Data dashboard description. |
|
string |
The role ID used when creating it. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
array of object |
Data source. |
|
string |
logo. |
|
string |
Data dashboard ID. |
|
integer |
Table ID. |
|
string |
Database name. |
|
string |
Table name. |
|
string |
status. Value: |
|
array of object |
Affected charts. |
|
string |
logo. |
|
string |
Name. |
|
array of object |
Chart list. |
|
string |
logo. |
|
string |
Data dashboard ID. |
|
string |
Name. |
|
string |
Chart type. |
|
string |
SQL text. |
|
string |
Database name. |
|
string |
Chart configuration JSON text. |
|
string |
Layout configuration JSON text. |
|
string |
Refresh interval. |
|
string |
Scheduled task ID. |
|
integer |
Scheduling version. |
|
string |
Scheduling status. |
|
string |
Scheduling error. |
|
boolean |
Whether to enable alarms. |
|
string |
Alert configuration JSON text. |
|
string |
Snapshot starting time. RFC 3339 time. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
array of object |
Alarm records. |
|
string |
logo. |
|
string |
Data dashboard ID. |
|
string |
Chart ID. |
|
string |
Chart name. |
|
string |
Alarm field name. |
|
string |
X-axis field name. |
|
string |
Comparison operators. |
|
number |
threshold. |
|
string |
X-axis value. |
|
number |
Alarm trigger value. |
|
string |
level. |
|
string |
status. |
|
string |
Occurrence time. RFC 3339 time. |
|
string |
Last notification time. RFC 3339 time. |
|
integer |
The current number of alarm charts. |
Error response¶
The following example corresponds to HTTP 400.
{
"code": "ErrParamInvalid",
"msg": "Bad Request"
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code, such as |
|
string |
HTTP status description, such as |