Create data dashboard

Create data dashboards and connect data sources.

HTTP
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.

Shell
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

name

string

Yes

Data dashboard name. Cannot be empty.

description

string

No

Data dashboard description. Saves as an empty string when omitted.

sources

array of object

Yes

List of data sources. At least 1 items.

sources[].table_id

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

JSON
{
  "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

data.ID

string

Data dashboard ID.

data.Name

string

Data dashboard name.

data.Description

string

Data dashboard description.

data.CreatedByRoleID

string

The role ID used when creating it.

data.CreatedAt

string

Creation time. RFC 3339 time.

data.UpdatedAt

string

Update time. RFC 3339 time.

data.sources

array of object

Data source.

data.sources[].ID

string

logo.

data.sources[].DashboardID

string

Data dashboard ID.

data.sources[].TableID

integer

Table ID.

data.sources[].DatabaseName

string

Database name.

data.sources[].TableName

string

Table name.

data.sources[].Status

string

status. Value: active, invalid.

data.sources[].AffectedCharts

array of object

Affected charts.

data.sources[].AffectedCharts[].ID

string

logo.

data.sources[].AffectedCharts[].Name

string

Name.

data.charts

array of object

Chart list.

data.charts[].ID

string

logo.

data.charts[].DashboardID

string

Data dashboard ID.

data.charts[].Name

string

Name.

data.charts[].ChartType

string

Chart type.

data.charts[].SQLText

string

SQL text.

data.charts[].DatabaseName

string

Database name.

data.charts[].ChartConfig

string

Chart configuration JSON text.

data.charts[].LayoutConfig

string

Layout configuration JSON text.

data.charts[].RefreshInterval

string

Refresh interval.

data.charts[].SchedulerTaskID

string

Scheduled task ID.

data.charts[].ScheduleVersion

integer

Scheduling version.

data.charts[].ScheduleStatus

string

Scheduling status.

data.charts[].ScheduleError

string

Scheduling error.

data.charts[].AlertEnabled

boolean

Whether to enable alarms.

data.charts[].AlertConfig

string

Alert configuration JSON text.

data.charts[].SnapshotEpochAt

string

Snapshot starting time. RFC 3339 time.

data.charts[].CreatedAt

string

Creation time. RFC 3339 time.

data.charts[].UpdatedAt

string

Update time. RFC 3339 time.

data.alerts

array of object

Alarm records.

data.alerts[].ID

string

logo.

data.alerts[].DashboardID

string

Data dashboard ID.

data.alerts[].ChartID

string

Chart ID.

data.alerts[].ChartName

string

Chart name.

data.alerts[].FieldName

string

Alarm field name.

data.alerts[].XFieldName

string

X-axis field name.

data.alerts[].Operator

string

Comparison operators.

data.alerts[].Threshold

number

threshold.

data.alerts[].XValue

string

X-axis value.

data.alerts[].TriggerValue

number

Alarm trigger value.

data.alerts[].Level

string

level.

data.alerts[].Status

string

status.

data.alerts[].OccurredAt

string

Occurrence time. RFC 3339 time.

data.alerts[].LastNotifiedAt

string

Last notification time. RFC 3339 time.

data.active_alert_count

integer

The current number of alarm charts.

Error response

The following example corresponds to HTTP 400.

JSON
{
  "code": "ErrParamInvalid",
  "msg": "Bad Request"
}

Field

Type

Description

code

string

Error code, such as ErrParamInvalid or ErrDataDashboardNotFound.

msg

string

HTTP status description, such as Bad Request or Not Found.

Last updated on