{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"DsResponseVO":{"properties":{"data":{"description":"返回的数据信息。","type":"object"}},"type":"object"},"ExportDesignModelsResult":{"description":"Success,导出接口结果。","example":{"data":{"uuid":"fd653968-864b-45f6-9842-2b125d2dbfb9"}},"properties":{"data":{"description":"返回的数据信息。","properties":{"uuid":{"description":"导入接口返回的唯一标识。","example":"fd653968-864b-45f6-9842-2b125d2dbfb8","type":"string"}},"type":"object"}},"type":"object"}},"description":null,"group_id":"23bb69798aaf409da161a43a90617121","host":"dayu.cn-north-4.myhuaweicloud.com","id":"f2e3fecbddd84665995b2a9b1baf2854","info_version":"v1","method":"post","name":"ImportCatalogs","parameters":{"contextTypeParam":{"description":"默认值:application/json;charset=UTF-8\n可选,有Body体的情况下必选,没有Body体则无需填写和校验。","in":"header","maxLength":64,"minLength":3,"name":"Content-Type","required":false,"type":"string"},"tenantIdParam":{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。","in":"path","maxLength":64,"minLength":3,"name":"project_id","required":true,"type":"string"},"tenantXIdParam":{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。\n\n多project场景采用AK/SK认证的接口请求,则该字段必选。","in":"header","maxLength":64,"minLength":3,"name":"X-Project-Id","required":false,"type":"string"},"tokenParam":{"description":"IAM Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)\n使用Token认证时必选。","in":"header","maxLength":4096,"minLength":0,"name":"X-Auth-Token","required":true,"type":"string"},"workspaceParam":{"description":"工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。","in":"header","maxLength":64,"minLength":3,"name":"workspace","required":true,"type":"string"}},"paths":{"/v2/{project_id}/design/catalogs/action":{"post":{"consumes":["multipart/form-data"],"description":"用于导入主题。","operationId":"ImportCatalogs","parameters":[{"$ref":"#/parameters/tokenParam"},{"$ref":"#/parameters/workspaceParam"},{"$ref":"#/parameters/tenantIdParam"},{"$ref":"#/parameters/tenantXIdParam"},{"$ref":"#/parameters/contextTypeParam"},{"description":"导入主题用的excel文件,大小必须小于4MB,且行数小于3000行。","in":"formData","name":"file","required":true,"type":"file"},{"description":"需要执行的动作。\n枚举值:\n - start-import: 开始导入","in":"query","items":{"enum":["start-import"],"type":"string"},"name":"action-id","required":true,"type":"string"},{"default":false,"description":"是否需要覆盖更新已有的主题。","in":"query","name":"skip-exist","type":"boolean"}],"produces":["application/json"],"responses":{"200":{"description":"Success,返回data数据是导入任务的uuid,可根据该uuid去查询导入结果。","schema":{"$ref":"#/definitions/ExportDesignModelsResult"}},"400":{"description":"BadRequest","schema":{"$ref":"#/definitions/DsResponseVO"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/DsResponseVO"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/DsResponseVO"}}},"summary":"导入主题","tags":["导入导出接口"],"x-api-type":"doc-open","x-is-registered":"Y","x-order":1,"x-request-examples-description-1":"上传主题excel,通过form表单提交,file为具体excel文件。","x-request-examples-url-1":"POST https://{endpoint}/v2/{project_id}/design/catalogs/action?action-id=start-import&skip_exist=false","x-support-sdk":"Y"}}},"product_short":"DataArtsStudio","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"导入主题","tags":"导入导出接口","uri":null,"version":"2.0"}