Skip to content

Extended Information Configuration



POST /api/v1/dashboards/{dashboard_uuid}/set_extend

Overview

Batch updates the default query workspaces and the site a dashboard belongs to.

Before You Begin and Usage Steps

First, obtain the UUIDs and regionCode of the granted workspaces from the Granted Workspace List. For a single configuration, select workspaces from the same site. After submitting, you can call the dashboard details to check extend. Only the submitted extension items are overwritten; modifying the default query workspaces while omitting targetRegion clears the previous site identifier. Data queries are still executed based on the actual authorization.

Route Parameters

Parameter Type Required Description
dashboard_uuid string Y UUID of the target dashboard.
Example: dsbd_example
How to obtain or fill in: Copy content.data[].uuid from the Dashboard List, or use content.uuid from the creation result.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential of the workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with the required permissions for this operation from API Key Management in the target workspace.

Body Request Parameters

Parameter Type Required Description
defaultTargetWorkspaceUUIDs array Y Array of UUIDs of the default query workspaces.
Null allowed: False
Example: ["wksp_example"]
How to obtain or fill in: Copy content[].data[].workspaceUUID from the target site group in the Granted Workspace List. Set the default query workspaces as needed; pass [] to clear the list.
targetRegion string regionCode of the site the target workspaces belong to.
Null allowed: False
Empty string allowed: False
Example: site-example
How to obtain or fill in: Obtain the regionCode corresponding to these workspaces from the Granted Workspace List. This can be omitted when using the current site.

Additional Parameter Notes

This API only saves the default query configuration. When modifying the same dashboard at the same time, execute the operations serially.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/dashboards/dsbd_example/set_extend' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"defaultTargetWorkspaceUUIDs":["wksp_example"]}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content boolean true when the extended configuration is saved successfully.
{
  "code": 200,
  "content": true,
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed A request field is missing, or a field value violates the declared validation conditions Parameter parsing failed Verify the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError The request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError The JSON syntax is valid but the request top level is not an object Some json file format error Place the parameters in a JSON object.
404 ft.NotFoundView The target dashboard does not exist, has been deleted, or is not in the current workspace Specified view not found Use a UUID returned by the dashboard list of the current workspace instead.
403 ft.ForbiddenDashboardOperation The calling identity cannot operate the target dashboard You do not have permission to operate dashboard [{}] Verify the dashboard's visibility scope, operation authorization, and the API Key used.

Feedback

Is this page helpful?