[英]Is it possible to delete or overwrite document in BIM360 Docs using API?
When we upload the document in BIM360 docs folder, the document is not overwritten if it exists already. 当我们将文档上载到BIM360 docs文件夹中时,如果该文档已经存在,则不会被覆盖。
What we want to do is, if a document already exists. 我们想要做的是,如果文档已经存在。 then upload code should be overwritten the document.
然后应该将上传代码覆盖文档。 Or delete the existed document and upload a new one.
或删除现有文档并上传新文档。
We have not found any API which can delete BIM360 docs. 我们找不到任何可以删除BIM360文档的API。
To remove items from BIM360 Docs' folder, please call POST projects/:project_id/versions with this body and fresh your web browser if you're opening the folder page that contains this item, then you will see it has been moved into "Deleted Items": 要从BIM360 Docs文件夹中删除项目,请使用此主体调用POST projects /:project_id / versions ,并在打开包含该项目的文件夹页面时刷新Web浏览器,然后您将看到它已移至“已删除”项目“:
{
"jsonapi":{
"version":"1.0"
},
"data":{
"type":"versions",
"attributes":{
"extension":{
"type":"versions:autodesk.core:Deleted", //!<<< The key of this action
"version":"1.0"
}
},
"relationships":{
"item":{
"data":{
"type":"items",
"id":"{{ItemId}}" //!<<< e.g. urn:adsk.wipprod:dm.lineage:8ucohSiktGeEqDn4SX75cA of id of the item you want to delete
}
}
}
}
}
Note. 注意。 Files uploaded onto BIM360 Docs are not deletable really, all of them are just hidden or moved into the "Deleted Items" after calling this API or clicking delete button on the BIM360 Web UI.
上载到BIM360 Docs的文件实际上并不能删除,在调用此API或单击BIM360 Web UI上的删除按钮后,所有文件都只是被隐藏或移动到“已删除邮件”中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.