Feature Menu Settings v2¶
POST /api/v1/workspace/menu_v2/set
Overview¶
Saves workspace menus using the two-level legacy protocol.
Before Calling and Usage Steps¶
Use the current workspace key with workspace.setManage. Legacy-protocol-compatible saves go through the same workspace transaction lock as v3. They only reorder system nodes and set visibility within the range expressible by the legacy protocol, while retaining v3 custom catalog/resource/role configurations. Legacy nodes not listed are restored to the default display state; this is not a patch that modifies only one item in the array. Therefore, read the complete legacy configuration before modifying it.
In addition to the original declaration, v2 further validates the key/isShow/children structure. Do not write the isHide or other returned metadata from GET directly.
The legacy protocol does not require expectedRevision and may overwrite visibility changes made by other editors within the expressible range; for concurrent editing, prefer v3. The save response returns the legacy two-level projection (including the v1 write entry), not a value array shaped according to the request. updated=true does not mean the content necessarily changed; menu audit is recorded by route only when there is a change. The first save may persist and increase the revision even if the default content is the same.
When validating with the Owner identity, note the following: effective menu calculation ignores workspace isShow hiding (except dividers), but is still subject to platform hiding and actual permissions; the final display may differ between regular roles and the Owner.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| menu[*] | json | Object; duplicate keys are rejected; resource authorization cannot be created in the legacy protocol. Example: {"key": "LogIndi", "isShow": false, "children": []}How to obtain or enter: Use a single system item returned by the legacy GET. |
|
| menu[*].key | string | Required key, case-sensitive. v1 supports only the original declaration enumeration; v2 can accept unknown/retired keys but does not add an accessible v3 entry based on them. Example: LogIndiHow to obtain or enter: Take the original value from content.config[].key in the legacy GET. |
|
| menu[*].isShow | boolean | Required JSON boolean; controls workspace visibility and cannot override platform hiding. Example: falseHow to obtain or enter: Read and adjust from the corresponding node in the legacy GET for that version. |
|
| menu[*].children | array | Optional complete second-level array; omitting it/[] restores the default display for legacy child nodes not listed under this parent. Example: []How to obtain or enter: Read and adjust from the corresponding node in the legacy GET for that version. |
|
| menu[*].children[*] | json | A single second-level item, only key/isShow. Example: {"key": "Log", "isShow": true}How to obtain or enter: Read and adjust from the corresponding node in the legacy GET for that version. |
|
| menu[*].children[*].key | string | Required; use children[].key from the legacy GET of the corresponding parent node.Example: LogHow to obtain or enter: Read and adjust from the corresponding node in the legacy GET for that version. |
|
| menu[*].children[*].isShow | boolean | Required JSON boolean; workspace visibility of the child menu. Example: trueHow to obtain or enter: Read and adjust from the corresponding node in the legacy GET for that version. |
|
| menu | array | Y | Required complete legacy protocol range array. Omitted legacy system nodes are restored to the default display state; an empty array does not disable all menus; v3 custom object/role configurations that are not expressed are retained. Allows null: False Example: [{"key": "LogIndi", "isShow": false, "children": []}]How to obtain or enter: First read content.config from the GET of the corresponding version, remove the returned metadata, and construct it according to the fields on this page. |
Additional Parameter Description¶
Request Parameter Description
| Parameter | type | Required | Description |
|---|---|---|---|
| menu | array[json] | Y | Menu bar configuration |
menu Internal Structure Description
| Parameter | type | Required | Description |
|---|---|---|---|
| key | string | Y | Top-level menu configuration |
| isShow | string | Y | Whether to display |
| children | array[dict] | Y | Second-level menu configuration |
Example:
[{"key":"Scene","isShow":true,"children":[{"key":"DashboardList","isShow":true},{"key":"SceneDashboardCreate","isShow":true},{"key":"LinkToTrackService","isShow":true},{"key":"RegularReportList","isShow":true},{"key":"ViewerList","isShow":true},{"key":"BuiltInViewList","isShow":true}]},{"key":"Notebook","isShow":true,"children":[]},{"key":"Billing","isShow":true,"children":[]}]
Top-level Menu Item Description
| key | Description |
|---|---|
| Scene | Scenes |
| Events | Events |
| ExceptionsTracking | Incident |
| Objectadmin | Infrastructure |
| MetricQuery | Metrics |
| LogIndi | Logs |
| Tracing | Application Performance Monitoring (APM) |
| Rum | Real User Monitoring (RUM) |
| CloudDial | Synthetic Monitoring |
| Security | Security Check |
| GitLabCI | CI Visualization |
| Monitor | Monitoring |
| Integration | Integrations |
| Workspace | Management |
| Billing | Plans & Billing |
The second-level menu configurations corresponding to top-level menus are as follows
{"Scene": ["DashboardList", "SceneDashboardCreate", "LinkToTrackService", "RegularReportList", "ViewerList", "BuiltInViewList"], "Notebook": [], "Events": ["KeyEventsMonitorChart", "KeyEventsSmartMonitor"], "ExceptionsTracking": ["ExceptionsTrackingConf"], "Objectadmin": ["ObjectadminHost", "ObjectadminHostTopology", "ObjectadminDocker", "ObjectadminProcesses", "HostNetwork", "ObjectadminOther", "WorkspacePipelineList"], "MetricQuery": ["MetricAnalysis", "MetricMap", "WorkspacePipelineList"], "LogIndi": ["Log", "LogPipelineList", "Indicator", "LogIndexList", "LogFilterRuleList", "LogBackupExplorer", "LogQueryRuleList"], "Tracing": ["LinkToTrackService", "LinkToTrackServiceDirected", "LinkToTrackDashboard", "LinkToTrackLink", "LinkToTrackError", "LinkToTrackProfile", "ApmIndicator", "WorkspacePipelineList", "LogBackupExplorer"], "Rum": ["RumList", "RumViewer", "RumDashboard", "RumTrack", "RumIndicator", "WorkspacePipelineList", "RumHosted", "LogBackupExplorer"], "CloudDial": ["CloudDialList", "CloudDialDashboard", "CloudDialExplorer", "CloudDialSelfNodeList"], "Security": ["SecurityExplorer", "SecurityDashboard", "SecurityIndicator", "WorkspacePipelineList"], "GitLabCI": ["GitLabCIExplorer", "GitLabCIDashboard"], "Monitor": ["CheckerRuleList", "SmartCheckerRuleList", "IntelligentInspectionList", "SLOList", "SilenceList", "CheckerRuleGroupList", "AlertToList"], "Integration": ["IntegrationList", "Datakit", "FunctionDetail", "DCA", "Mobile"], "Workspace": ["WorkspaceDetail", "WorkspaceAttrDetail", "WorkspaceFieldsList", "WorkspaceTagsList", "WorkspaceMembers", "WorkspaceRoles", "APIManage", "MemberInviteList", "WorkspaceFilterRuleList", "WorkspacePipelineList", "LogBackupExplorer", "RegexpList", "CloudAccountList", "KeyEventsAudit", "EmbeddedSharing", "CrossNamespacedataAuth", "DataAuthorization", "DataScanerList"], "Billing": []}
Notes:
1. If not configured, the frontend treats it as a new menu and opens it by default.
2. Menu configurations present in the management backend affect the final display of the workspace configuration.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/workspace/menu_v2/set' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"menu":[{"key":"LogIndi","isShow":false,"children":[]}]}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.workspaceUUID | string | UUID of the workspace to which the current key belongs. |
| content.config | array<object> |
Menu configuration array; an empty result can also be []. |
| content.keyCode | string | Compatibility metadata; for save/v3 compatibility projection, it is usually WsMenuCfg; the legacy read branch for new workspaces may omit it. |
| content.updated | boolean | Usually true when a workspace configuration or v3 compatibility projection exists; it is not a reliable indicator of whether this write changed anything, and may be omitted for new workspaces. |
| content.id | integer or null | Database ID of the saved configuration; may be omitted. |
| content.uuid | string | ctcf_ configuration UUID; may be omitted and is not used as a menu node ID. |
| content.creator | string | Configuration creator identity; may be omitted. |
| content.updator | string | Configuration updater identity; may be omitted. |
| content.status | integer | Configuration entity status; may be omitted. |
| content.createAt | integer | Creation Unix seconds; may be omitted. |
| content.updateAt | integer | Update Unix seconds; may be omitted. |
| content.deleteAt | integer | Deletion Unix seconds; -1 if not deleted; may be omitted. |
| content.declaration | object | Public declaration of the current workspace. |
| content.config[].key | string | Top-level system menu key; returned as-is. Dynamic catalogs and resources are not included in this legacy projection. |
| content.config[].isShow | boolean | Whether the workspace configuration displays it; does not override platform-enforced hiding or actual permissions. |
| content.config[].isHide | boolean | Platform-enforced hiding flag; display requires both isShow=true and isHide=false. |
| content.config[].children | array<object> |
Second-level system menu array; can be []. |
| content.config[].children[].key | string | Second-level menu key; the parent-child combination determines identity. |
| content.config[].children[].isShow | boolean | Workspace visibility of the child menu. |
| content.config[].children[].isHide | boolean | Platform hiding flag for the child menu. |
| content.config[].menuGroupKey | string | Historical site grouping metadata; may be omitted. |
| content.config[].groupKey | string | Historical grouping alias; may be omitted. |
| content.config[].navGroupKey | string | Historical navigation grouping alias; may be omitted. |
{
"code": 200,
"content": {
"id": 101,
"uuid": "ctcf_menu_example",
"workspaceUUID": "wksp_example",
"keyCode": "WsMenuCfg",
"config": [
{
"key": "Scene",
"isShow": true,
"isHide": false,
"children": [
{
"key": "DashboardList",
"isShow": true,
"isHide": false
},
{
"key": "ViewerList",
"isShow": true,
"isHide": false
},
{
"key": "BuiltInViewList",
"isShow": true,
"isHide": false
},
{
"key": "LinkToTrackService",
"isShow": true,
"isHide": false
},
{
"key": "RegularReportList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Notebook",
"isShow": true,
"isHide": false,
"children": []
},
{
"key": "Events",
"isShow": true,
"isHide": false,
"children": [
{
"key": "KeyEventsMonitor",
"isShow": true,
"isHide": false
},
{
"key": "KeyEventsMonitorChart",
"isShow": true,
"isHide": false
},
{
"key": "LogBackupExplorer",
"isShow": true,
"isHide": false
}
]
},
{
"key": "ExceptionsTracking",
"isShow": true,
"isHide": false,
"children": [
{
"key": "Exceptions",
"isShow": true,
"isHide": false
},
{
"key": "AnalysisDashboard",
"isShow": true,
"isHide": false
},
{
"key": "ExceptionsSchedule",
"isShow": true,
"isHide": false
},
{
"key": "ExceptionsTrackingConf",
"isShow": true,
"isHide": false
},
{
"key": "CrossWorkspace",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Incident",
"isShow": true,
"isHide": false,
"children": [
{
"key": "IncidentList",
"isShow": true,
"isHide": false
},
{
"key": "IncidentDashboard",
"isShow": true,
"isHide": false
},
{
"key": "IncidentSchedule",
"isShow": true,
"isHide": false
},
{
"key": "IncidentConfig",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Error",
"isShow": true,
"isHide": false,
"children": [
{
"key": "ErrorList",
"isShow": true,
"isHide": false
},
{
"key": "ErrorDashboard",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Objectadmin",
"isShow": true,
"isHide": false,
"children": [
{
"key": "ObjectadminHost",
"isShow": true,
"isHide": false
},
{
"key": "ObjectadminDocker",
"isShow": true,
"isHide": false
},
{
"key": "ObjectadminProcesses",
"isShow": true,
"isHide": false
},
{
"key": "ObjectadminDatabase",
"isShow": true,
"isHide": false
},
{
"key": "HostNetwork",
"isShow": true,
"isHide": false
},
{
"key": "ObjectadminOther",
"isShow": true,
"isHide": false
},
{
"key": "WorkspacePipelineList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Entity",
"isShow": true,
"isHide": false,
"children": [
{
"key": "EntityList",
"isShow": true,
"isHide": false
},
{
"key": "EntityTopology",
"isShow": true,
"isHide": false
}
]
},
{
"key": "DataObservability",
"isShow": true,
"isHide": false,
"children": [
{
"key": "DataObservabilityOverview",
"isShow": true,
"isHide": false
},
{
"key": "DataObservabilityCatalog",
"isShow": true,
"isHide": false
},
{
"key": "DataObservabilityJobs",
"isShow": true,
"isHide": false
},
{
"key": "DataObservabilityLineage",
"isShow": true,
"isHide": false
}
]
},
{
"key": "MetricQuery",
"isShow": true,
"isHide": false,
"children": [
{
"key": "MetricAnalysis",
"isShow": true,
"isHide": false
},
{
"key": "MetricMap",
"isShow": true,
"isHide": false
},
{
"key": "MetricIndicator",
"isShow": true,
"isHide": false
},
{
"key": "WorkspacePipelineList",
"isShow": true,
"isHide": false
},
{
"key": "DataAccessRuleList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "LogIndi",
"isShow": false,
"isHide": false,
"children": [
{
"key": "Log",
"isShow": true,
"isHide": false
},
{
"key": "LogTrackError",
"isShow": true,
"isHide": false
},
{
"key": "LogPipelineList",
"isShow": true,
"isHide": false
},
{
"key": "LogIndexList",
"isShow": true,
"isHide": false
},
{
"key": "LogFilterRuleList",
"isShow": true,
"isHide": false
},
{
"key": "LogBackupExplorer",
"isShow": true,
"isHide": false
},
{
"key": "LogQueryRuleList",
"isShow": true,
"isHide": false
},
{
"key": "MetricIndicator",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Tracing",
"isShow": true,
"isHide": false,
"children": [
{
"key": "LinkToTrackService",
"isShow": true,
"isHide": false
},
{
"key": "LinkToTrackDashboard",
"isShow": true,
"isHide": false
},
{
"key": "LinkToTrackLink",
"isShow": true,
"isHide": false
},
{
"key": "LinkToTrackError",
"isShow": true,
"isHide": false
},
{
"key": "LinkToTrackProfile",
"isShow": true,
"isHide": false
},
{
"key": "LogBackupExplorer",
"isShow": true,
"isHide": false
},
{
"key": "DataAccessRuleList",
"isShow": true,
"isHide": false
},
{
"key": "MetricIndicator",
"isShow": true,
"isHide": false
},
{
"key": "WorkspacePipelineList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Rum",
"isShow": true,
"isHide": false,
"children": [
{
"key": "RumList",
"isShow": true,
"isHide": false
},
{
"key": "RumViewer",
"isShow": true,
"isHide": false
},
{
"key": "RumDashboard",
"isShow": true,
"isHide": false
},
{
"key": "RumHeatMap",
"isShow": true,
"isHide": false
},
{
"key": "RumTrack",
"isShow": true,
"isHide": false
},
{
"key": "LogBackupExplorer",
"isShow": true,
"isHide": false
},
{
"key": "DataAccessRuleList",
"isShow": true,
"isHide": false
},
{
"key": "MetricIndicator",
"isShow": true,
"isHide": false
},
{
"key": "WorkspacePipelineList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "CloudBilling",
"isShow": true,
"isHide": false,
"children": [
{
"key": "ColudBillingExplorer",
"isShow": true,
"isHide": false
},
{
"key": "ColudBillingDashboard",
"isShow": true,
"isHide": false
},
{
"key": "CloudBillingBudget",
"isShow": true,
"isHide": false
}
]
},
{
"key": "CloudDial",
"isShow": true,
"isHide": false,
"children": [
{
"key": "CloudDialList",
"isShow": true,
"isHide": false
},
{
"key": "CloudDialDashboard",
"isShow": true,
"isHide": false
},
{
"key": "CloudDialExplorer",
"isShow": true,
"isHide": false
},
{
"key": "CloudDialSelfNodeList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Security",
"isShow": true,
"isHide": false,
"children": [
{
"key": "SecuritySIEMRules",
"isShow": true,
"isHide": false
},
{
"key": "SecuritySIEMExplorer",
"isShow": true,
"isHide": false
},
{
"key": "SecuritySIEMExecutionLogs",
"isShow": true,
"isHide": false
}
]
},
{
"key": "AIMonitor",
"isShow": true,
"isHide": false,
"children": [
{
"key": "AIMonitorList",
"isShow": true,
"isHide": false
},
{
"key": "AIMonitorExplorer",
"isShow": true,
"isHide": false
},
{
"key": "AIMonitorEvaluator",
"isShow": true,
"isHide": false
},
{
"key": "AIMonitorDashboard",
"isShow": true,
"isHide": false
}
]
},
{
"key": "GitLabCI",
"isShow": true,
"isHide": false,
"children": [
{
"key": "GitLabCIExplorer",
"isShow": true,
"isHide": false
},
{
"key": "GitLabCIDashboard",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Monitor",
"isShow": true,
"isHide": false,
"children": [
{
"key": "CheckerRuleList",
"isShow": true,
"isHide": false
},
{
"key": "AICheckerRuleList",
"isShow": true,
"isHide": false
},
{
"key": "SmartCheckerRuleList",
"isShow": true,
"isHide": false
},
{
"key": "SLOList",
"isShow": true,
"isHide": false
},
{
"key": "SilenceList",
"isShow": true,
"isHide": false
},
{
"key": "CheckerRuleGroupList",
"isShow": true,
"isHide": false
},
{
"key": "AlertToList",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Integration",
"isShow": true,
"isHide": false,
"children": [
{
"key": "IntegrationList",
"isShow": true,
"isHide": false
},
{
"key": "Datakit",
"isShow": true,
"isHide": false
},
{
"key": "GatewayAccess",
"isShow": true,
"isHide": false
},
{
"key": "ImApplication",
"isShow": true,
"isHide": false
},
{
"key": "FunctionDetail",
"isShow": true,
"isHide": false
},
{
"key": "CloudAccountList",
"isShow": true,
"isHide": false
},
{
"key": "ExternalDataSourceList",
"isShow": true,
"isHide": false
},
{
"key": "DCA",
"isShow": true,
"isHide": false
},
{
"key": "Mobile",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Workspace",
"isShow": true,
"isHide": false,
"children": [
{
"key": "WorkspaceDetail",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceAttrDetail",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceFieldsList",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceTagsList",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceEnvsList",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceMembers",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceRoles",
"isShow": true,
"isHide": false
},
{
"key": "APIManage",
"isShow": true,
"isHide": false
},
{
"key": "ClientToken",
"isShow": true,
"isHide": false
},
{
"key": "MemberInviteList",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceFilterRuleList",
"isShow": true,
"isHide": false
},
{
"key": "WorkspacePipelineList",
"isShow": true,
"isHide": false
},
{
"key": "LogBackupExplorer",
"isShow": true,
"isHide": false
},
{
"key": "DataAccessRuleList",
"isShow": true,
"isHide": false
},
{
"key": "RegexpList",
"isShow": true,
"isHide": false
},
{
"key": "KeyEventsAudit",
"isShow": true,
"isHide": false
},
{
"key": "EmbeddedSharing",
"isShow": true,
"isHide": false
},
{
"key": "CrossNamespacedataAuth",
"isShow": true,
"isHide": false
},
{
"key": "DataAuthorization",
"isShow": true,
"isHide": false
},
{
"key": "DataScanerList",
"isShow": true,
"isHide": false
},
{
"key": "WorkspaceCopilotSubscription",
"isShow": true,
"isHide": false
},
{
"key": "ErrorCenterList",
"isShow": true,
"isHide": false
},
{
"key": "Labs",
"isShow": true,
"isHide": false
}
]
},
{
"key": "Billing",
"isShow": true,
"isHide": false,
"children": []
}
],
"updated": true,
"status": 0,
"creator": "wsak_example",
"updator": "wsak_example",
"createAt": 1785427200,
"updateAt": 1785427300,
"deleteAt": -1,
"declaration": {}
},
"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 | Resolution |
|---|---|---|---|---|
| 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 an object according to the example. |
| 400 | ft.ParamsValidateError | Menu node/role configuration violates structure, identity, type, size, scope, or duplicate constraints | Parameter validation failed: {} | Locate the issue based on the error content.reason/path, read the latest tree and role/resource, and then correct it. |
| 401 | ft.WKSPNotExistOrReleased | The current workspace does not exist or is not active | Workspace does not exist/or has been released | Confirm that the current workspace is valid and use the corresponding workspace key. |
| 500 | ft.InternalServerError | Configuration persistence or response processing failed | Internal error | Re-read the complete configuration, verify the revision and result, merge, and then save again to avoid overwriting concurrent modifications. |