如何获得Forge BIM 360 API上的问题根源类别?

问题描述

我想获取根本原因的类别,并且还知道根本原因是否活跃。

这是在BIM 360的项目Admin/Issues/Services/Root Causes会话上配置的。

enter image description here

我尝试使用https://forge.autodesk.com/en/docs/bim360/v1/reference/http/root-causes-GET/中记录的API https://developer.api.autodesk.com/issues/v1/containers/:container_id/root-causes找出根本原因。

但是此API的响应不会告诉根本原因是什么类别,无论它是否处于活动状态。

以下是回复示例:

{
  "data": [
    {
      "id": "5502171c-9e38-427e-a49a-40fa6821dec4","type": "root_causes","links": {
        "self": "https://developer.api.autodesk.com/issues/v1/containers/be00f32e-c03c-4c7b-9ec4-d2614bf1980cu2n/root-causes/5502171c-9e38-427e-a49a-40fa6821dec4"
      },"attributes": {
        "key": "INSTALLATION","title": "Installation"
      }
    },{
      "id": "a3311fc6-4571-4fca-9fb4-37120d976bd2","links": {
        "self": "https://developer.api.autodesk.com/issues/v1/containers/be00f32e-c03c-4c7b-9ec4-d2614bf1980cu2n/root-causes/a3311fc6-4571-4fca-9fb4-37120d976bd2"
      },"attributes": {
        "key": "WEATHER","title": "Weather"
      }
   ]
}

如何通过API发现问题的根本原因的类别和激活状态?

解决方法

我遇到了同样的问题,设法解决了以下问题,我向URL https://developer.api.autodesk.com/issues/v2/containers/[containerId]/issue-root-cause-categories?include=rootcauses&limit=9999发出了请求,然后滚动浏览数据并应用了所需的过滤器,我尝试传递一些queryString但没有成功,所以我决定滚动浏览数据并进行过滤,希望对您有所帮助。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...