创建文件夹
操作场景
本章节指导用户通过调用API创建文件夹。
操作步骤
- 获取接口相关信息:
URL格式:/pdmpublicservice/services/external/mda/v2/folder/create
- 发送“https://pbm.ipd.huawei.com/pdmcore/pdmmvpgw/pdmcore/pdmpublicservice/services/external/mda/v2/folder/create”。
其中,请求参数如下:
表1 入参 序号
名称
描述
参数位置
数据类型
备注
1
parentOid
父对象oid
Body
String
folderId
2
parentOtype
父对象otype
Body
String
-
3
name
名称
Body
String
-
4
domainOid
domain oid
Body
String
domainId
5
domainOtype
domain otype
Body
String
-
6
isInheritedParent
是否继承父域1为是,0为否,继承父域时domainId无效
Body
String
-
7
description
文件夹描述
创建文件夹接口添加
Body
String
folderDescription
8
otype
对象otype
Body
String
-
- 在Request Header中增加“X-Auth-Token”“X-Csrf-Token”。
- 查看请求响应结果。
请求成功时,响应参数如下:
{ "result": "SUCCESS", "success": true, "messageBoxIcon": "INFO", "data": { "isLeaf": true, "oid": "433359818011541504", "cabinetoid": "411211136990461952", "cabinetotype": "ty.inteplm.folder.CTyCabinet", "parentnodeoid": "0", "parentnodeotype": "ty.inteplm.folder.CTySubFolder", "description": "test", "nodeindex": 0, "createstamp": "2023-05-30 16:42:35", "updatestamp": "2023-05-30 16:42:35", "updatecount": "0", "markfordelete": "0", "otype": "ty.inteplm.folder.CTySubFolder", "modifystamp": "2023-05-30 16:42:35", "containeroid": "-1", "containerotype": "ty.inteplm.library.CTyLibrary", "domainotype": "ty.inteplm.domain.CTyDomain", "creatoroid": "419211831442194432", "creatorotype": "ty.inteplm.org.CTyUser", "name": "test(0)", "owneroid": "419211831442194432", "ownerotype": "ty.inteplm.org.CTyUser", "updatoroid": "419211831442194432", "updatorotype": "ty.inteplm.org.CTyUser" }, "time": "2023-05-30 16:42:35" }