通过 API 在 BIM360 中设置位置质量问题? (而不是位置详细信息)

Set Location in BIM360 Quality issue via API? (Rather than Location Details)

我可以通过 BIM360 API(或下方关联的 API、link)添加 质量问题,并且我是能够设置 位置详细信息 。但是,我的客户使用 Location 字段,而不是 Location Details。有什么方法可以具体设置位置吗?

这是发布项目的页面: https://forge.autodesk.com/en/docs/bim360/v1/reference/http/field-issues-POST/

我没有看到位置属性或位置允许属性,只看到位置详细信息。

见图:https://i.stack.imgur.com/3OmZd.png

我们可以得到路径下的location id attributes.lbs_location

{
    "id": "038edfcf-t56y-4e04-a358-42c95f20c945",
    "type": "quality_issues",
    //...
    "attributes": {
        //...
        "lbs_location": "d14ce3a6-e61b-4ab0-a9be-5acf7b5366df",
        //...
    },
    // ... 
}

要获取相应的位置数据,我们需要调用GET v2/containers/{containerId}/trees/{treeId}/nodes

{
  "pagination": {
    "limit": 2,
    "offset": 0,
    "totalResults": 2,
    "nextUrl": null
  },
  "results": [
    {
      "id": "5add4375-f223-4201-88b9-8049e68416aa",
      "parentId": null,
      "type": "Root",
      "name": "Project",
      "description": "Project description",
      "barcode": null,
      "order": 0,
      "documentCount": 0,
      "areaDefined": false
    },
    {
      "id": "d14ce3a6-e61b-4ab0-a9be-5acf7b5366df",
      "parentId": "5add4375-f223-4201-88b9-8049e68416aa",
      "type": "Area",
      "name": "Area 1",
      "description": "An Area 1 node",
      "barcode": "ABC123",
      "order": 0,
      "documentCount": 2,
      "areaDefined": true
    }
  ]
}

要修改质量问题的位置 ID,我们可以使用以下有效负载调用 PATCH issues/:id

{
    "data": {
        "type": "quality_issues",
        "id": "038edfcf-t56y-4e04-a358-42c95f20c945",
        "attributes": {
            "lbs_location": "d14ce3a6-e61b-4ab0-a9be-5acf7b5366df"
        }
    }
}