BIM 360 问题 "Assigned To"

BIM 360 issue "Assigned To"

如何将“分配给”从特定用户更改为未指定?我用{name: '-'}主要是为了我的UI,这显然不足以作为输入,也许{id: '', name: '-'}{id: null, name: '-'}?

我们可以为 assigned_toassigned_to_type 指定 null 值,以将用户从问题中删除并使其成为未指定的。

curl --location --request PATCH 'https://developer.api.autodesk.com/issues/v1/containers/:issueContainerId/quality-issues/:issueId' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
    "data": {
        "type": "quality_issues",
        "id": "{{issueId}}",
        "attributes": {
            "assigned_to": null,
            "assigned_to_type": null
        }
    }
}'

API 参考:https://forge.autodesk.com/en/docs/bim360/v1/reference/http/field-issues-:id-PATCH/