添加文件版本(文件上传成功后调用)
POST
/dms_symbol_sz/api/bim/version/edit/addVersionFile
请求参数
Body 参数application/json
parentId
string
父节点ID
projectId
string
项目ID
fileName
string
文件名称
contentType
string
文件类型
fileSize
integer
文件大小
storagePath
string
存储路径
objectId
string
上传得到的id
示例
{
"projectId": "aed94f4d5bd94ee59be75a6b16c6036d",
"parentId": "1f9a869bf81c4079af497ab62e9c54dd",
"contentType": "ifc",
"extensionName": "ifc",
"fileName": "03项目模型比对01.ifc",
"fileSize": 1902946,
"storagePath": "http://192.168.190.95:8100/api/bim/obs/docs/download?objectId=20230906161125000004",
"fileType": "ifc"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/dms_symbol_sz/api/bim/version/edit/addVersionFile' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectId": "aed94f4d5bd94ee59be75a6b16c6036d",
"parentId": "1f9a869bf81c4079af497ab62e9c54dd",
"contentType": "ifc",
"extensionName": "ifc",
"fileName": "03项目模型比对01.ifc",
"fileSize": 1902946,
"storagePath": "http://192.168.190.95:8100/api/bim/obs/docs/download?objectId=20230906161125000004",
"fileType": "ifc"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
errmsg
string
必需
data
object
必需
createTime
string
必需
createUserId
null
必需
createUserName
string
必需
currentVersion
object
必需
customAttributes
null
必需
id
string
必需
lastModifyUserId
null
必需
lastModifyUserName
string
必需
latestFileName
string
必需
latestVersionNum
integer
必需
name
string
必需
parentFolderId
string
必需
示例
{
"code": 0,
"errmsg": "成功",
"data": {
"createTime": "2023-09-01 09:43:10",
"createUserId": null,
"createUserName": "58ed74f959a74783b2c071326fb77c1a",
"currentVersion": {
"contentType": "dwg",
"createTime": "2023-09-01 09:43:10",
"createUserId": null,
"createUserName": "58ed74f959a74783b2c071326fb77c1a",
"customAttributes": null,
"fileName": "555.DWG",
"fileSize": "2790934",
"id": "f6f3263ef2eb4053a328817e14d804bd",
"lastModifyUserId": null,
"lastModifyUserName": "2023-09-01T01:43:10.235+00:00",
"processStatus": "0",
"storagePath": "http://192.168.190.95:8100/api/bim/obs/docs/download?objectId=20230901094310000438",
"version": 1
},
"customAttributes": null,
"id": "f6f3263ef2eb4053a328817e14d804bd",
"lastModifyUserId": null,
"lastModifyUserName": "58ed74f959a74783b2c071326fb77c1a",
"latestFileName": "555.DWG",
"latestVersionNum": 1,
"name": "555.DWG",
"parentFolderId": "2643d4cbe69e49c3bb4328bc7d3e91a6"
}
}
修改于 2023-09-21 08:51:52