复制报告接口
    更新时间: 2022-06-25 15:54:01
    
    阅读 279
    
复制报告接口
接口说明:
将某个报告,复制到同项目的另一个文件夹中
基本信息:
| 属性 | 值 | 
|---|---|
| API | /api/dash/report/copy | 
| Method | GET | 
请求参数:
| 字段名称 | 参数类型 | 参数说明 | 
|---|---|---|
| token | String | 鉴权token,只有在项目中的用户才能调用该接口 | 
| reportId | Int | 报告ID | 
| folderId | Int | 目标文件夹的 ID | 
| title | String | 复制后的新名字 | 
| category | Int | 0: 目标文件夹为公共文件夹;1:目标文件夹为私人文件夹 | 
成功数据返回:
{
    "code": 200,
    "result": {
        "id": 6162,
        "title": "aaaa",
        "category": 0,
        "projectId": 63780,
        "permissions": [
            "view",
            "edit",
            "copy",
            "export",
            "share",
            "mail"
        ]
    },
    "logPath": "http://127.0.0.1:8009/operation/log/fNy78UctuDQ3geEsBJAm6m"
}
失败数据返回: 如果目标文件夹已存在同名报告,则会复制失败。
{
    "code": 732,
    "message": "标题命名重复",
    "result": {},
    "errType": "ERR",
    "logPath": "http://127.0.0.1:8009/operation/log/xyJxE1PzouoZ64WHz6Ww2Y"
}
    
文档反馈
                    
                    
                    
                    
                
                    
以上内容对您是否有帮助?