简体   繁体   English

如何使用 Postman 或 .NET 设置 BIM360 项目的状态

[英]How to set the status of a BIM360 Project using Postman or .NET

I have been successful in following this tutorial in creating a new Project: https://forge.autodesk.com/en/docs/bim360/v1/tutorials/account-admin/create-project/#step-1-create-a-new-project .我已经成功地按照本教程创建了一个新项目: https : //forge.autodesk.com/en/docs/bim360/v1/tutorials/account-admin/create-project/#step-1-create-a -新项目

However I am unsure of how to change the status of a created Project in BIM360 from active to archived .但是,我不确定如何将 BIM360 中archived创建项目的状态从active更改为archived I have looked around for any documentation on this topic but I haven't found any.我四处寻找有关此主题的任何文档,但没有找到。 Is this action possible and if so, what is the request to perform this?此操作是否可行,如果可行,执行此操作的请求是什么?

Yes you can PATCH a project and update its status:是的,您可以修补项目并更新其状态:

curl -v 'https://developer.api.autodesk.com/hq/v1/accounts/e3d5ef8d-5c37-4b9d-925d-1e6d24753ace/projects/aca11a7a-bd17-47cd-ab99-6548d0e6fe25' \
  -X 'PATCH' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer 9ezBnx9Rd5D1xG4KMt6b72T4w0MG' \
  -d '{"status":"archived"}'

See doc here .请参阅此处的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM