[英]How to Restore a prior item version as "current" in BIM360 via Autodesk-Data-Management-API
In BIM360, how can I restore a file or plan ( item ) to a prior version .在 BIM360 中,如何将文件或计划(项目)恢复到以前的版本。 This is possible in the BIM360 UI, see attached Snip.
这在 BIM360 UI 中是可能的,请参阅附加的 Snip。
Interestingly in the BIM360 UI the restored versions show the old version number (in this example V3 ) are restored documents a new item or an old one ??有趣的是,在 BIM360 UI 中,恢复的版本显示旧版本号(在本例中为V3 )是恢复文档是新项目还是旧项目?
You can use the following endpoint to restore the file version to a previous one:您可以使用以下端点将文件版本恢复到以前的版本:
POST projects/:project_id/versions?copyFrom={version_urn}
{
“jsonapi”: {
“version”: “1.0”
},
“data”: {
“type”: “versions”
}
}
For details, please refer https://forge.autodesk.com/en/docs/data/v2/tutorials/delete-and-restore-file/ and https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-POST/有关详细信息,请参阅https://forge.autodesk.com/en/docs/data/v2/tutorials/delete-and-restore-file/和https://forge.autodesk.com/en/docs/data/ v2/reference/http/projects-project_id-versions-POST/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.