更新时间:2021-12-17 GMT+08:00
分享

保存项目为草稿

功能介绍

保存编辑中的项目为草稿。

URI

  • URI格式
    POST /softcomai/datalake/dataplan/v1.0/debug/drafts
  • 参数说明

    无。

请求

  • 请求样例
    POST https://ipaddr:port/softcomai/datalake/dataplan/v1.0/debug/drafts
    {
    "name":"测试项目草稿4",
    "draftContent":{"name":"测试草稿4","description":"","tag":"","tasks":[{"id":"9132916638526341305","pId":0,"variables":[{"showName":"businessArea","showNameEn":"businessArea","varName":"businessArea","varValue":"时空领域","defaultVisible":"true","encrypt":"false"},{"showName":"dataType","showNameEn":"dataType","varName":"dataType","varValue":"性能数据","defaultVisible":"true","encrypt":"false"}],"paramList":[],"taskName":"手工采集_采集","taskType":"COLLECTION_BUILTIN","builtInTaskType":"COLLECTION_CLOUD_MANUAL","isKeyTask":"true","timeout":"60","gid":"T_20200518113830_1589773110260","preTaskGid":"","isRoot":true,"childGid":"T_20200518113843_1589773123958"},{"id":"9168462783146011110","pId":0,"variables":[],"paramList":[{"id":"110853876993622767","source":"0","paramName":"string","paramType":"GOVERN_BUILTIN","paramValue":"-env alpha -dataRightAddr \"#{dataRightAddr}\" -preObsModelPath \"${obsModelPath}\" -preEntities \"${entityName}\" -preEntityBusinessNames \"${entityBusinessName}\" -preEntityDirs \"${entityAbsoluteDirectory}\" -section \"queryModelDetail\" -domainId #{ultimateTenantId} -domainName #{ultimateTenantName} -projectId #{ultimateProjectId} -userId #{ultimateUserId} -managementToken ${getManageToken}","appendType":"STRING","userId":"PUBLIC","tenantId":"PUBLIC","createTime":"2020-05-16 16:13:57","newCreate":"false"},{"id":"855281492693696137","source":"0","paramName":"dataModelPackage","paramType":"GOVERN_BUILTIN","paramValue":"dr-1d7714fdf8404a01bae9610512162a52","appendType":"JOB_ID","userId":"PUBLIC","tenantId":"PUBLIC","createTime":"2020-05-16 16:13:57","newCreate":"false"}],"taskName":"数据建模_治理","taskType":"GOVERN_BUILTIN","builtInTaskType":"GOVERN_MODEL","isKeyTask":"true","timeout":60,"gid":"T_20200518113843_1589773123958","preTaskGid":"","isRoot":false,"childGid":""}],"driveStrategy":"localCollectDrive"}
    }
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    name

    String

    草稿名称。

    draftContent

    JSON

    草稿内容。

响应

  • 成功响应样例
    {
    "success": true,
    "returnData": "true"}
  • 要素说明

    参数名

    参数类型

    备注

    success

    String

    请求是否成功,取值包括true和false。

    returnData

    String JSON

    返回值。

状态码

具体请参考状态码

相关文档