简体   繁体   English

BIM 360 REST端点问题

[英]BIM 360 REST Endpoints problems

we actually started with the BIM360 API at work. 我们实际上是从BIM360 API开始工作的。 We implemented most of the enpoints that are provided by the API @ https://developer.autodesk.com/en/docs/bim360/v1/reference/http/ 我们实现了API @ https://developer.autodesk.com/en/docs/bim360/v1/reference/http/提供的大多数方法

At one point I have discovered some issues. 有一次我发现了一些问题。 After succesfully creating a project with the API it needs to be activated. 使用API​​成功创建项目后,需要将其激活。 With first response which tells the project was created under an specific ID. 带有第一响应,告诉该项目是在特定ID下创建的。 Taking this ID and creating a new Request I get the following response: 使用此ID并创建一个新的请求,我得到以下响应:

"{\\"code\\":1001,\\"message\\":\\"You cannot change the status of a project that has no project admin.\\"}" “ {\\” code \\“:1001,\\” message \\“:\\”您不能更改没有项目管理员的项目的状态。“”“

OK no problem I think and create a new Request to patch the Project with an project admin. 好的,我认为没有问题,并创建一个新请求以项目管理员对项目进行修补。 But there I get following message: 但是我得到以下消息:

{\\"code\\":1004,\\"message\\":\\"this project doesn't exist.\\"}" {\\“代码\\”:1004,\\“消息\\”:\\“此项目不存在。\\”}“

@ https://developer.api.autodesk.com/hq/v1/accounts/:account_id/projects/:project_id/users @ https://developer.api.autodesk.com/hq/v1/accounts/:account_id/projects/:project_id/users

The things thats make me curious is that the Projects exist as Response from Get Project and is visible in the WEB Interface from Autodesk. 令我感到奇怪的是,这些项目作为Get Project的响应存在,并且在Autodesk的WEB界面中可见。

I tried to add an project admin with API again, but took a Project that was created from the Autodesk BIM 360 Webinterface. 我尝试再次使用API​​添加项目管理员,但是选择了从Autodesk BIM 360 Web界面创建的项目。 And it works, because it is activated automatically. 它有效,因为它是自动激活的。

At this point I can't find a solution which it get working... 在这一点上,我找不到一个可行的解决方案...

(Side note we using C#, the actual Autodesk API, RestSharp, Newton Json...) (附带说明,我们使用C#,实际的Autodesk API,RestSharp,Newton Json ...)

Maybe someone else got it working? 也许有人让它起作用了?

Thanks for your time! 谢谢你的时间!

There is a tutorial: https://developer.autodesk.com/en/docs/bim360/v1/tutorials/activate-service/ 有一个教程: https : //developer.autodesk.com/en/docs/bim360/v1/tutorials/activate-service/

Could you try that? 你能尝试一下吗?

We had a similar question before and verified it works: Autodesk Forge BIM 360 API - Activating Service Types 之前我们有一个类似的问题,并验证了它的有效性: Autodesk Forge BIM 360 API-激活服务类型

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

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