Identifier ID Import¶
POST /api/v1/board/import/identifier
Overview¶
Overwrite existing dashboard/user view content site-wide by identifier, or update system view templates.
Before You Call and Usage Steps¶
Requires a site-level External AK/SK with write (w) permission (External API Signature Authentication). This endpoint does not accept workspaceUUID. It selects active CUSTOM workspace objects and the selected system language templates site-wide by identifier. Back up and inventory all resources with the same identifier first; you must use a non-empty exact identifier. A workspace target is fully overwritten: old charts/groups/variables are soft-deleted first, IDs are regenerated, and then the template content is saved. Omitting main, dashboardExtend, dashboardMapping, and similar fields does not preserve the original values; if you only want to change the title, use the regular workspace-scoped update endpoint. title/summary/iconSet/binding configurations each have their own compatibility rule that overwrites only when non-empty, so the old statement that "anything not passed is preserved" does not apply. The current implementation reuses template objects for the same batch of workspace targets; chart pos/group/uuid are taken in place when the first target is processed, so the layout/grouping of subsequent targets may change. If multiple targets need to keep the same layout, prefer splitting into the single-resource import endpoint for each workspace; with this global endpoint, verify each target and do not rely only on HTTP 200. innerViewerZh/En are only the starting point for language selection; the query first requires that the requested language has a non-custom template. If only a custom template exists or no template exists for that language, fallback may occur (zh to en, en to zh). Therefore, innerViewerEn may select a Chinese template and set status=3 (deleted state); selecting both branches may first update and then delete the same template, so it cannot be described as modifying only English resources. The two branches overwrite only keys that already exist in the final template meta, and the actual UPDATE matches only status=0; if the query selects a non-zero record, there may be no update yet the call still succeeds. Before execution, inventory the system/custom records in both languages by identifier and confirm the finally selected language and UUID; the response array does not provide update results for these system templates. Each target/language is committed independently; there is no whole-batch rollback and no per-item error result. On failure, previous targets may already have been updated. Tags with a mismatched scope may be skipped, but the array does not provide a skippedTags summary. On success, content lists only workspace resource results; [] may mean no match, an unrecognized importType, or that only system templates were processed. Import regenerates chart UUIDs, and external references to old charts must be verified separately; data sources/functions/variables must be valid in the target workspace, and a successful save does not prove that chart queries are executable.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Df-SVersion | string | Signature version for the original path and request body; do not omit it and continue using the algorithm on this page. Example: v20240417How to obtain or fill in: The example on this page uses this fixed version, which is paired with the example signing algorithm. |
|
| X-Df-Access-Key | string | Y | Read endpoints can use r or w credentials; write endpoints require w credentials. Example: <external-access-key>How to obtain or fill in: Assigned by the site administrator as External API AK; workspace OpenAPI Keys cannot be used. |
| X-Df-Signature | string | Y | Concatenate the uppercase method, nonce, original full path, timestamp, and original UTF-8 request body with spaces, then compute HMAC-SHA256 and take the hex digest. Example: <hmac-sha256-hex>How to obtain or fill in: Compute with the paired SK according to External API Signature Authentication; see the complete runnable template below. |
| X-Df-Timestamp | string | Y | Must be within the signature validity window configured for the site; do not reuse the example time. Example: 1785427200How to obtain or fill in: Generate the current Unix seconds string with str(int(time.time())) when sending. |
| X-Df-Nonce | string | Y | Temporary serial number; generate a new value and recompute the signature even when retrying after a failure. Example: 97d275ee9f774315a7885ba7347acbd9How to obtain or fill in: Generate uuid.uuid4().hex anew for each request. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| importType[*] | string | A single overwrite category; do not substitute the Chinese display name or an ownerType value. Example: dashboardHow to obtain or fill in: Select from the four exact strings above. |
|
| templateInfo.title | string | For workspace resources, replace name only with a non-empty truthy value; omit/empty string preserves the old title. The system template branch overwrites only keys with the same name that already exist in meta, and empty values are also overwritten directly. Example: Business MetricsHow to obtain or fill in: Adjust from the exported template title. |
|
| templateInfo.summary | string | For workspace resources, replace desc only with a non-empty truthy value; omit/empty string preserves the old description; this differs from the system meta key overwrite logic. Example: Core Business MetricsHow to obtain or fill in: Adjust from the template summary. |
|
| templateInfo.identifier | string | For workspace resources, replace the identifier only when non-empty; the current global path does not perform an outer single-workspace uniqueness check; after the change, the old identifier will no longer select it next time. Do not treat it as a read-only locator key. Example: my-unique-dashboard-templateHow to obtain or fill in: Keep the original template identifier; if migration is truly needed, inventory the impact first. |
|
| templateInfo.dashboardType | string | For workspace imports, the default is reset to CUSTOM, not preserving the old type; keeping CUSTOM is recommended. main.type is not this field. Example: CUSTOMHow to obtain or fill in: Keep the valid exported template type. |
|
| templateInfo.dashboardExtend | json | Workspace imports overwrite extend as a whole; omitting it defaults to {}; do not mistake this for an incremental merge; dynamic keys are preserved according to the export format. Example: {}How to obtain or fill in: Copy the complete dashboard extension settings from the exported template. |
|
| templateInfo.dashboardMapping | array | Workspace imports overwrite mapping as a whole; omitting it defaults to []. Preserve each dynamic JSON item according to the valid export format; this path does not fill in business structures. Example: []How to obtain or fill in: Copy the exported view variable field mapping array. |
|
| templateInfo.dashboardMapping[*] | json | A single complete mapping object; do not guess mapping keys from old blank table headers. Example: {}How to obtain or fill in: Copy an actual single mapping configuration from the target template. |
|
| templateInfo.iconSet | json | For workspace resources, replace only when the object is non-empty; omitting it or {} preserves the original icon; keys are saved according to the original configuration. Top-level icon/thumbnail are currently not consumed separately by the workspace branch. Example: {"url": "", "icon": ""}How to obtain or fill in: Keep the exported icon object. |
|
| templateInfo.iconSet.url | string | Optional icon URL; whether it is displayed depends on client configuration; do not use fixed asset domains of other brands. Example: https://example.com/icon.pngHow to obtain or fill in: Get the address from your own accessible icon resource, or keep the original value. |
|
| templateInfo.iconSet.icon | string | Optional small icon configuration value; the actual structure follows the original export. Example: chartHow to obtain or fill in: Keep the icon identifier/configuration exported from the console. |
|
| templateInfo.dashboardBindSet | array | Replace only with a non-empty truthy value; omitting it/[] preserves the old bindings and does not clear them. Example: []How to obtain or fill in: Keep the complete binding settings from a valid exported template of the target. |
|
| templateInfo.dashboardBindSet[*] | json | Saved according to the dynamic structure of the original binding configuration; this endpoint does not fully validate resource ownership. Example: {}How to obtain or fill in: Copy one valid exported binding object. |
|
| templateInfo.tags | array | For node workspace dashboards, tag associations are reset by name, with non-empty tags taking precedence; omitting it/[] causes tagInfo to be tried, and if neither exists, tags are cleared. Tags with the same name that are not scene/all are skipped in the import context, but old associations may still be cleared; the array response does not provide a skippedTags summary. The actual inner branch of userViewer does not go through these scenario tag updates. Example: ["production"]How to obtain or fill in: Select from existing scene/all tag names in the target workspace or from the required business tags; verify the scope first. |
|
| templateInfo.tags[*] | string | A single tag name, up to 128 characters; a new name can create a scene tag in the target workspace. Example: productionHow to obtain or fill in: Copy the corresponding tag name; do not use tag_UUID. |
|
| templateInfo.tagInfo | array | Only when tags has no non-empty value, select tags by each item's name; semantics are the same as tags. This is not an append; you cannot use tagInfo.uuid to specify a cross-workspace tag. Example: [{"name": "production"}]How to obtain or fill in: Keep tagInfo if it already exists in a compatible export format. |
|
| templateInfo.tagInfo[*] | json | Only name is read; other client display fields do not determine association. Example: {"name": "production"}How to obtain or fill in: Copy from valid exported tag information. |
|
| templateInfo.tagInfo[*].name | string | A single tag name. Example: productionHow to obtain or fill in: Obtain from an existing/new business tag name in the target. |
|
| templateInfo.main | json | Complete target for charts, groups, and variables. Omitting it or {} rebuilds them as empty collections; it cannot serve as a patch for changing only the title. Example: {"groups": [], "charts": [], "vars": []}How to obtain or fill in: Copy the complete valid exported template main. |
|
| templateInfo.main.type | string | Legacy template system type information; the current workspace rebuild does not use it in place of dashboardType. Example: dashboardHow to obtain or fill in: Keep the system marker in the original template. |
|
| templateInfo.main.groups | array | Group list; supports name strings or {name,extend} objects; deduplicated by name. Omitting it/[] clears groups, and group UUIDs are regenerated. Example: ["Business Metrics"]How to obtain or fill in: Copy the group order from the exported template; when modifying, ensure that chart group corresponds to its name. |
|
| templateInfo.main.groups[*] | string or object | A string is the group name; objects read name/extend, and objects with an empty name are ignored. Group names are up to 256 characters. Example: {"name": "Business Metrics", "extend": {}}How to obtain or fill in: Copy from the exported group structure. |
|
| templateInfo.main.groups[*].name | string | Group name in object form; cannot be empty; charts are grouped by the group with the same name. Example: Business MetricsHow to obtain or fill in: Define the group name yourself, or copy an existing exported name. |
|
| templateInfo.main.groups[*].extend | json | Optional group extension object; defaults to {}. Example: {}How to obtain or fill in: Keep exported settings such as group collapse. |
|
| templateInfo.main.charts | array | Complete chart collection; omitting it/[] deletes old charts and does not rebuild them; old chart UUIDs are deleted and new IDs are generated. Example: []How to obtain or fill in: Copy the complete chart array from a valid exported template; do not substitute the detail chartPos. |
|
| templateInfo.main.charts[*] | json | Chart object; validates that type is a string, queries is an array, and each query is an object; not all client extension keys are fully validated by the server. Example: {"name": "CPU Idle", "type": "line", "queries": [{"qtype": "dql", "query": {"q": "M::`cpu`:(`usage_idle`)"}}], "pos": {"x": 0, "y": 0, "w": 12, "h": 6}}How to obtain or fill in: Copy from a chart export object verified in the console, and modify the actual query statement. |
|
| templateInfo.main.charts[*].name | string | Defaults to or is an empty string for an empty title, up to 256 characters. Example: CPU IdleHow to obtain or fill in: Fill in the chart display name. |
|
| templateInfo.main.charts[*].type | string | Defaults to line, stored in lowercase; currently it is not limited to sequence only; supported types follow the console export. Example: lineHow to obtain or fill in: Keep the valid exported chart type, such as line or combine. |
|
| templateInfo.main.charts[*].uuid | string | Discarded even if provided, and a new chart ID is generated; it cannot be used to preserve old chart associations. Example: chrt_exampleHow to obtain or fill in: May be carried over from an old export; ordinary calls do not need to fill it in. |
|
| templateInfo.main.charts[*].group | json | Can be a string group name, {name:group name}, or null; if there is no corresponding group, it is assigned to default. Objects are parsed by name. Example: {"name": "Business Metrics"}How to obtain or fill in: Must exactly match a name in this request's main.groups. |
|
| templateInfo.main.charts[*].group.name | string | Group name; can be null to indicate no grouping. Example: Business MetricsHow to obtain or fill in: Reference the name in this request's main.groups. |
|
| templateInfo.main.charts[*].pos | json | Layout object; defaults to {}; interpreted in client layout units; the server saves it as-is and does not treat the string in old descriptions as a mandatory numeric contract. Example: {"x": 0, "y": 0, "w": 12, "h": 6}How to obtain or fill in: Copy from the exported layout. |
|
| templateInfo.main.charts[*].pos.x | number | Horizontal position, in client grid units. Example: 0How to obtain or fill in: Copy the exported grid x-coordinate. |
|
| templateInfo.main.charts[*].pos.y | number | Vertical position. Example: 0How to obtain or fill in: Copy the exported grid y-coordinate. |
|
| templateInfo.main.charts[*].pos.w | number | Width. Example: 12How to obtain or fill in: Copy the exported grid width. |
|
| templateInfo.main.charts[*].pos.h | number | Height. Example: 6How to obtain or fill in: Copy the exported grid height. |
|
| templateInfo.main.charts[*].pos.i | string | Optional client layout marker; not used as the real UUID of a new chart. Example: chart-positionHow to obtain or fill in: Keep the original export display marker (if any). |
|
| templateInfo.main.charts[*].extend | json | Overall chart extension object; defaults to {}; its nested keys are dynamic by chart type and are currently saved as the original JSON; required client settings are not automatically filled in. Example: {}How to obtain or fill in: Fully keep valid exported chart extension configurations such as settings/style. |
|
| templateInfo.main.charts[*].queries | array | For regular charts, an array of query objects; for combine, the outer layer is child chart objects, and each child chart contains its own queries array. Do not replace the array with a string/single object. Example: [{"qtype": "dql", "query": {"q": "M::`cpu`:(`usage_idle`)"}}]How to obtain or fill in: Copy the query structure from a verified chart export. |
|
| templateInfo.main.charts[*].queries[*] | json | Regular query objects read qtype/query and preserve additional display keys; combine child chart uuid is normalized to the first main and other unique internal IDs, and nested queries are recursively validated. Example: {"qtype": "dql", "query": {"q": "M::`cpu`:(`usage_idle`)"}}How to obtain or fill in: Use exported query objects for regular charts and exported complete child chart objects for combine. |
|
| templateInfo.main.charts[*].queries[*].qtype | string | Regular query type; this import call does not execute queries or verify that business data exists. Example: dqlHow to obtain or fill in: Use the actual query syntax type, such as dql/promql. |
|
| templateInfo.main.charts[*].queries[*].query | json | Dynamic object of regular query parameters; if a query key exists, it must be an object; time/variable/data source fields are preserved according to the valid export. This endpoint only saves them and does not synchronously execute data queries based on them. Example: {"q": "M::`cpu`:(`usage_idle`)"}How to obtain or fill in: Copy a valid exported query object; see Synchronous Query Parameters for actual fields. |
|
| templateInfo.main.charts[*].queries[*].query.q | string | Regular query statement, which may contain template variables; cross-workspace templates need to check the availability of actual datasets/fields/variables. Example: M::`cpu`:(`usage_idle`)How to obtain or fill in: Copy DQL/PromQL after verifying it in the target workspace's query tool. |
|
| templateInfo.main.charts[*].queries[*].query.outerDatasourceInfo | json | Managed references are rebound to uuid in the target workspace by configMd5; if no match is found, the old workspace uuid is removed but the digest is retained, and no data source is created. Function references such as funcServerId need to be checked against the target workspace configuration; this path is not a complete resource migration. Example: {"configMd5": "<exported-config-digest>"}How to obtain or fill in: For managed external data source references, retain the exported configMd5 and configure a data source with the same content in each target workspace in advance. |
|
| templateInfo.main.charts[*].queries[*].query.outerDatasourceInfo.configMd5 | string | Target data source configuration matching digest. Example: <exported-config-digest>How to obtain or fill in: Use the valid exported value directly; do not manually generate a business digest. |
|
| templateInfo.main.charts[*].queries[*].queries | array | Used only at the combined child chart level; the internal structure is the same as regular queries and can be recursive; do not treat it as an ordinary query object. Example: []How to obtain or fill in: For combine charts, keep the valid exported child chart query array. |
|
| templateInfo.main.vars | array | Complete variable collection; omitting it/[] clears it; seq is reset starting from 0 according to array order and UUIDs are generated. Example: []How to obtain or fill in: Copy the complete view variable array from a valid export. |
|
| templateInfo.main.vars[*] | json | Variable object; name/code/type are stripped, and type is uppercased; the definition/extend dynamic structures of different variable types must follow a valid console export; the server does not fully validate frontend semantics here. Example: {"name": "Host", "code": "host", "type": "QUERY", "definition": {}}How to obtain or fill in: Export the variable object from an available target template; do not guess the definition format from the name. |
|
| templateInfo.main.vars[*].name | string | Display name, defaults to empty, leading and trailing whitespace is removed. Example: HostHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].code | string | Variable code, defaults to empty, leading and trailing whitespace is removed; must be consistent with variable references in queries. Example: hostHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].type | string | Variable type, defaults to empty and is then uppercased; use a valid exported type from the console. Example: QUERYHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].definition | json | Fully copy the exported definition according to the variable type; defaults to {}. Example: {}How to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].datasource | string | Optional data source type, defaults to an empty string; preserve according to the original export. Example: metricHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].valueSort | string | Optional value sort, defaults to an empty string. Example: ascHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].hide | integer | Hide display switch, defaults to 0. Example: 0How to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].isHiddenAsterisk | integer | Hidden asterisk option switch, defaults to 0. Example: 0How to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].multiple | boolean | Whether multiple selection is allowed, defaults to true. Example: trueHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].includeStar | boolean | Whether to include the asterisk option, defaults to true. Example: trueHow to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].extend | json | Variable extension object, defaults to {}; fully copy according to the original export. Example: {}How to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| templateInfo.main.vars[*].seq | integer | Recalculated by array position during import; this value is not used to control the final order. Example: 0How to obtain or fill in: Copy from a valid exported variable object and check it against the query references in this template. |
|
| importType | array | Y | Required array. dashboard updates workspace dashboards with ownerType=node; userViewer actually matches workspace user views with ownerType=inner; innerViewerZh/En use zh/en as the query starting language respectively, and fallback may occur (zh→en, en→zh), so this is not a language isolation guarantee; even if only a custom template exists for that language, a match is not guaranteed to be prioritized. Unknown values are ignored, and [] is not processed; you cannot use it to specify a workspace. Allows null: False Example: ["dashboard"]How to obtain or fill in: Select one or more of dashboard, userViewer, innerViewerZh, and innerViewerEn as needed; check the site-wide impact before the operation. |
| identifier | string | Y | Required string; exactly matches active CUSTOM resources site-wide and the selected category, not limited to a workspace. Do not pass an empty string (currently not enforced as non-empty, and it may match a large number of objects without identifiers); inventory all resources with the same identifier first; this is not a resource UUID. Allows null: False Example: my-unique-dashboard-templateHow to obtain or fill in: Obtain the real and non-empty identifier from the dashboard/view details to be updated or from the exported template. |
| templateInfo | json | Declared optional but actually must be provided as a complete target; omitting it/{} does not preserve the original content: each workspace target still deletes old charts/groups/variables and resets layout/extend/mapping, etc. This page is used to overwrite existing matching resources, not to create unmatched workspace resources. Allows null: False Allows empty string: False Example: {"title": "Business Metrics", "main": {"groups": [], "charts": [], "vars": []}}How to obtain or fill in: Obtain a complete object from a verified dashboard/user view export template and back up each target first; do not treat the detail entity directly as a template. |
Additional Parameter Notes¶
This endpoint performs site-level global overwrite; it does not upload template files or create dashboards. It does not support workspace-based pagination, dryRun, asynchronous task progress, or whole-batch transactions. Not passing a template does not mean a precheck. Other client dynamic keys in template main/charts/variables/extensions follow the valid export; unknown keys do not mean the server promises support; the actual resource fields are subject to the keys explicitly consumed on this page.
Request Example¶
import hashlib
import hmac
import json
import time
import uuid
from urllib.parse import urlencode
from urllib.request import Request, urlopen
from urllib.error import HTTPError, URLError
# Replace with the target site address and the External API AK/SK assigned by the administrator.
server = "https://external-api.guance.com"
access_key = "<external-access-key>"
secret_key = "<external-secret-key>"
method = 'POST'
path = '/api/v1/board/import/identifier'
query = {}
data = {'importType': ['dashboard'], 'identifier': 'my-unique-dashboard-template', 'templateInfo': {'title': 'Business Metrics', 'dashboardType': 'CUSTOM', 'dashboardExtend': {}, 'dashboardMapping': [], 'main': {'groups': [], 'charts': [], 'vars': []}}}
full_path = path + ("?" + urlencode(query) if query else "")
body = "" if data is None else json.dumps(data, ensure_ascii=False, separators=(",", ":"))
timestamp = str(int(time.time()))
nonce = uuid.uuid4().hex
string_to_sign = " ".join([method, nonce, full_path, timestamp, body])
signature = hmac.new(secret_key.encode("utf-8"), string_to_sign.encode("utf-8"), hashlib.sha256).hexdigest()
headers = {
"X-Df-Access-Key": access_key,
"X-Df-Timestamp": timestamp,
"X-Df-Nonce": nonce,
"X-Df-Signature": signature,
"X-Df-SVersion": "v20240417",
}
if data is not None:
headers["Content-Type"] = "application/json"
request = Request(server + full_path, data=None if data is None else body.encode("utf-8"), headers=headers, method=method)
try:
with urlopen(request, timeout=30) as result:
payload = json.loads(result.read().decode("utf-8"))
except HTTPError as error:
print("HTTP", error.code, error.read().decode("utf-8")) # Determine based on errorCode, content, and traceId; do not output AK/SK.
raise SystemExit(1)
except (URLError, TimeoutError):
print('The request result is unknown. Query the actual configuration and task status first, then decide whether to retry the write request.')
raise SystemExit(1)
print(json.dumps(payload, ensure_ascii=False, indent=2))
Response¶
HTTP 200, standard External envelope with application/json, content is an array; there is no declaration, total count, system template result, or per-target failure list. The return value is an entity snapshot of the workspace resources executed in this request and does not contain complete details of new charts/variables.
| Field | Type | Description |
|---|---|---|
| content | Object array | Update results for matched workspace dashboard/userViewer objects only; [] is also returned when there is no match or only system templates are processed; it is not a per-target execution report. |
| content[].id | integer | Dashboard record number. |
| content[].uuid | string | Dashboard UUID, used for details, updates, deletion, and carousel. |
| content[].workspaceUUID | string | Workspace it belongs to. |
| content[].name | string | Dashboard display name. |
| content[].desc | string | Dashboard description. |
| content[].identifier | string | External custom identifier; may be empty. |
| content[].ownerType | string | For dashboard through this endpoint it is node; for userViewer, according to the current implementation, it is inner; it is not ownerType=viewer. |
| content[].type | string | Dashboard type, for example CUSTOM. |
| content[].chartPos | array<object> |
Chart layout array. Each item's chartUUID is the chart identifier, and pos is the layout object. |
| content[].chartPos[].chartUUID | string | Associated chart UUID. |
| content[].chartPos[].pos | object | Chart size and position, such as x, y, w, h. |
| content[].chartGroupPos | array<string> |
Order of chart group identifiers. |
| content[].iconSet | object | Icon settings. |
| content[].isPublic | integer | 1 public, 0 visible only to the creator identity, -1 custom permissions. |
| content[].extend | object | Extension configuration. |
| content[].mapping | array<object> |
Variable field mapping. |
| content[].createdWay | string | Written as import in this request. |
| content[].dashboardBindSet | array | View binding configuration. |
| content[].openPermissionSet | boolean | Whether custom permissions are currently enabled. |
| content[].permissionSet | array<string> |
List of operation permission subject UUIDs. |
| content[].readPermissionSet | array<string> |
List of read permission subject UUIDs. |
| content[].tagInfo | array<object> |
Tag information related to this response. |
| content[].tagInfo[].id | string | Tag identifier, same as uuid. |
| content[].tagInfo[].uuid | string | Tag UUID. |
| content[].tagInfo[].name | string | Associated tag name. |
| content[].tagInfo[].description | string | Tag description. |
| content[].tagInfo[].colour | string | Tag color. |
| content[].tagInfo[].scope | array<string> |
Effective scope of the tag. |
| content[].tagInfo[].tagPermissionInfo | object | Operation and read permission information attached when tag authorization exists. |
| content[].status | integer | Record status. |
| content[].creator | string | Creator identity ID. |
| content[].updator | string | This path does not actively refresh the Dashboard updater identity and may still be the old value; it is not guaranteed to be sys. |
| content[].createAt | number | Creation time, Unix seconds. |
| content[].updateAt | number | This path rebuilds content without actively calling Dashboard._update_time, so it may still be the original update time; do not use it to determine whether this batch has taken effect. |
| content[].deleteAt | number | Deletion time, Unix seconds. -1 when not deleted. |
| content[].creatorInfo | object | Creator information; may be an empty object. |
| content[].updatorInfo | object | Last updater information; may be an empty object. |
| content[].iconSet.url | string | Optional icon URL. |
| content[].iconSet.icon | JSON value | Optional small icon configuration. |
| content[].chartPos[].pos.x | number | Horizontal grid position. |
| content[].chartPos[].pos.y | number | Vertical grid position. |
| content[].chartPos[].pos.w | number | Width. |
| content[].chartPos[].pos.h | number | Height. |
| content[].mapping[] | object | Complete mapping item; dynamic keys follow the original template. |
| content[].extend.other keys | JSON value | Original dashboard extension value. |
| content[].tagInfo[].tagPermissionInfo.permissionSet | String array | Optional operation permission subjects. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSet | String array | Optional read permission subjects. |
| content[].creatorInfo.uuid | string | Identity UUID; may be empty for system identities. |
| content[].creatorInfo.status | integer | Account record status. |
| content[].creatorInfo.wsAccountStatus | integer | Optional status; the summary read does not pass the target workspace and cannot be used to prove that the target workspace member is valid. |
| content[].creatorInfo.username | string | Login name. |
| content[].creatorInfo.name | string | Display name. |
| content[].creatorInfo.iconUrl | string | Optional avatar. |
| content[].creatorInfo.email | string | Email or system identity display. |
| content[].creatorInfo.mobile | string | Optional mobile number. |
| content[].creatorInfo.countryCode | string | Optional mobile country code. |
| content[].creatorInfo.acntWsNickname | string | Optional workspace nickname. |
| content[].updatorInfo.uuid | string | Identity UUID; may be empty for system identities. |
| content[].updatorInfo.status | integer | Account record status. |
| content[].updatorInfo.wsAccountStatus | integer | Optional status; the summary read does not pass the target workspace and cannot be used to prove that the target workspace member is valid. |
| content[].updatorInfo.username | string | Login name. |
| content[].updatorInfo.name | string | Display name. |
| content[].updatorInfo.iconUrl | string | Optional avatar. |
| content[].updatorInfo.email | string | Email or system identity display. |
| content[].updatorInfo.mobile | string | Optional mobile number. |
| content[].updatorInfo.countryCode | string | Optional mobile country code. |
| content[].updatorInfo.acntWsNickname | string | Optional workspace nickname. |
| content[].tagInfo[].tagPermissionInfo.id | integer | Tag authorization record number. |
| content[].tagInfo[].tagPermissionInfo.uuid | string | Tag authorization record UUID. |
| content[].tagInfo[].tagPermissionInfo.workspaceUUID | string | Workspace it belongs to. |
| content[].tagInfo[].tagPermissionInfo.tagUUID | string | Tag UUID. |
| content[].tagInfo[].tagPermissionInfo.type | string | Authorized resource type, default dashboard. |
| content[].tagInfo[].tagPermissionInfo.status | integer | Active record 0. |
| content[].tagInfo[].tagPermissionInfo.creator | string | Creator identity. |
| content[].tagInfo[].tagPermissionInfo.updator | string | Updater identity. |
| content[].tagInfo[].tagPermissionInfo.createAt | integer | Creation Unix seconds. |
| content[].tagInfo[].tagPermissionInfo.updateAt | integer | Update Unix seconds. |
| content[].tagInfo[].tagPermissionInfo.deleteAt | integer | Deletion Unix seconds; -1 if not deleted. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo | object | Optional mapping from operation permission subjects to display profiles; account summary or role/team name/status. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo | object | Optional mapping of read permission subject display profiles. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier | object | Subject display object. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.uuid | string | Optional account UUID. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.name | string | Display name. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.status | integer | Record status. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.wsAccountStatus | integer | Account workspace status. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.username | string | Account login name. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.iconUrl | string | Optional avatar. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.email | string | Optional email. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.mobile | string | Optional mobile number. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.countryCode | string | Optional country code. |
| content[].tagInfo[].tagPermissionInfo.permissionSetInfo.identifier.acntWsNickname | string | Optional workspace nickname. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier | object | Subject display object. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.uuid | string | Optional account UUID. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.name | string | Display name. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.status | integer | Record status. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.wsAccountStatus | integer | Account workspace status. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.username | string | Account login name. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.iconUrl | string | Optional avatar. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.email | string | Optional email. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.mobile | string | Optional mobile number. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.countryCode | string | Optional country code. |
| content[].tagInfo[].tagPermissionInfo.readPermissionSetInfo.identifier.acntWsNickname | string | Optional workspace nickname. |
{
"code": 200,
"content": [],
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
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 | Request field is missing, or the field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Request JSON syntax is invalid | Request JSON format error | Fix the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | JSON top level is not an object | Some json file format error | Submit a JSON object. |
| 406 | ft.InvalidParameter | The template main/groups/charts/vars structure, chart type/group, or queries/query structure is invalid | Parameter {} is invalid |
Use a complete valid export template and fix it according to content.reason/the error parameter path. |
| 406 | ft.ExceedMaxCharacterLimit | Chart/group name exceeds 256 characters or tag name exceeds 128 characters | {} exceeds the maximum character length limit | Shorten the name; validate all target templates before initiating a site-wide overwrite. |
| 404 | ft.NotFoundView | The found workspace resource disappears/is deleted before the subsequent import | Specified view not found | Re-inventory resources with the same identifier site-wide; process after confirming the completed targets. |
| 500 | ft.InternalServerError | Exception in processing old content, template type, managed data source/tags/configuration, database, or returned profile | Internal error | Keep the traceId, check the current charts/groups/variables/system template status target by target according to the prior backup, and do not blindly replay the whole batch; some targets may already have been committed. |