Refresh all dashboard charts

Requests to refresh all charts in the specified data dashboard. Each chart is submitted independently and its respective return status needs to be checked.

HTTP
POST $CLOUDSIGMA_API_BASE/data-dashboards/{dashboard_id}/refresh

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. Select the ID of the required data dashboard from the list of Query Data Kanban List.

The chart must be in state ready and from a valid source. The current identity and role must be consistent with the scheduling identity saved in the chart, and must have corresponding data permissions.

Request parameters

Replace $DASHBOARD_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/data-dashboards/$DASHBOARD_ID/refresh" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Before execution, the server re-reads the configuration and checks the SQL. A single execution does not exceed 300 seconds, and a maximum of 10000 rows are returned.

Parameter

Type

Required

Description

dashboard_id

string

Yes

Data dashboard ID.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "runs": [
      {
        "chart_id": "chart-001",
        "execution_id": "exec-001",
        "status": "submitted"
      }
    ]
  }
}

Field

Type

Description

data.runs

array of object

Refresh submission results for each chart.

data.runs[].chart_id

string

Chart ID.

data.runs[].execution_id

string

Execution ID.

data.runs[].status

string

status.

data.runs[].error

string

error message.

Error response

Truncation of results or failure to handle alarms after saving the results may cause the refresh to fail.

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