简体   繁体   English

是否可以使用API​​删除或覆盖BIM360文档中的文档?

[英]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.

相关问题 使用BIM360 API删除项目 - Delete project using BIM360 API 如何使用 Forge 数据管理 API 在 BIM360 Docs 中找到 Revit 文档衍生 URN - How can I find Revit document derivatives URNs in BIM360 Docs using the Forge Data Management API 将模型上传到 BIM360 Design,而不是 BIM360 Docs - Upload models to BIM360 Design, not BIM360 Docs 是否可以通过数据管理 API 为 BIM360 Docs 文件夹实施命名标准? - Is it possible to enforce a naming standard for an BIM360 Docs folder through the data-management API? 如何使用 Autodesk Forge Data Management API 在 BIM360 Docs 中上传工作共享 Revit 模型 - How to Upload a worksharing Revit model in BIM360 Docs using Autodesk Forge Data Management API 有什么方法可以使用 API 从 BIM360 Docs“项目文件”目录中导出带有标记的 PDF 文件? - Is there any way to export PDF file with markup, from BIM360 Docs 'Project Files' Directory using API? 使用 BIM360 Docs API 我们如何检索可以分配给问题的位置列表? - Using BIM360 Docs API How can we Retrieves a list of locations that we can allocate to an issue? 使用Javascript下载BIM360 Docs文件 - Download BIM360 Docs file using Javascript 使用设计自动化覆盖 BIM360 文件 - Overwrite BIM360 file using Design Automation 是否有用于BIM360提交的API? - Is there an API for BIM360 Submittals?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM