跳转至

修改一个仪表板



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

概述

修改仪表板的属性信息,

路由参数

参数名 类型 必选 说明
dashboard_uuid string Y 视图UUID

Body 请求参数

参数名 类型 必选 说明
name string 视图名称
例子: 测试视图1号
允许为空: False
desc string 描述
例子: 描述1
允许为空: False
允许为空字符串: True
最大长度: 2048
extend json 视图额外信息
例子: {}
允许为空: False
mapping array mapping, 默认为[]
例子: []
允许为空: False
tagNames array tag的name,注意此字段为全量更新
允许为空: False
isPublic int 是否公开展示
例子: 1
允许为空: False
openPermissionSet boolean 公开展示情况下, 开启 自定义权限配置, (默认 false:不开启), 开启后 该规则的操作权限根据 permissionSet
允许为空: False
permissionSet array 操作权限配置, 可配置(角色(除拥有者), 成员uuid, 团队uuid)
例子: ['wsAdmin', 'acnt_xxxx', 'group_yyyy']
允许为空: False

参数补充说明

响应

{
    "code": 200,
    "content": {
        "chartGroupPos": [],
        "chartPos": [
            {
                "chartUUID": "chrt_xxxx32",
                "pos": {
                    "h": 11,
                    "i": "chrt_xxxx32",
                    "w": 11,
                    "x": 0,
                    "y": 0
                }
            }
        ],
        "createAt": 1642587228,
        "createdWay": "import",
        "creator": "acnt_xxxx32",
        "dashboardBidding": {},
        "dashboardBindSet": [],
        "deleteAt": -1,
        "extend": {},
        "iconSet": {},
        "id": 2494,
        "mapping": [],
        "name": "testt",
        "old_name": "openapi",
        "ownerType": "node",
        "status": 0,
        "tag_info": {
            "sceneInfo": [],
            "tagInfo": []
        },
        "type": "CUSTOM",
        "updateAt": 1642587908.306098,
        "updator": "wsak_xxxxx",
        "updatorInfo": {
            "iconUrl": "",
            "name": "第一个key",
            "username": "AK(wsak_xxxxx)"
        },
        "uuid": "dsbd_xxxx32",
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-5F0F4D27-0A77-41B3-9E05-227648467853"
} 

文档评价

文档内容是否对您有帮助? ×