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.
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.
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 |
|---|---|---|---|
|
string |
Yes |
Data dashboard ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"runs": [
{
"chart_id": "chart-001",
"execution_id": "exec-001",
"status": "submitted"
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Refresh submission results for each chart. |
|
string |
Chart ID. |
|
string |
Execution ID. |
|
string |
status. |
|
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.
{
"code": "ErrParamInvalid",
"msg": "Bad Request"
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code, such as |
|
string |
HTTP status description, such as |