如何在 Postman 上修补 BIM360 中的项目版本

How to PATCH a version of an item in BIM360 on Postman

https://forge.autodesk.com/blog/how-patch-apis-work-and-some-tips-using-patch-apis

https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-version_id-PATCH/

我已经按照上面的两个链接解释了如何修补一个项目的版本并更新它的名称,但我收到了错误。下面是我在Postman中输入的内容(URI里面的version_id已经编码):

URI: https://developer.api.autodesk.com/data/v1/projects/:project_id/versions/:version_id

授权: Bearer *****************************

内容类型: application/vnd.api+json

正文:

{
    "jsonapi": { 
        "version": "1.0" 
    }, 
    "data": { 
        "type": "versions",
        "id": *********************************************,
        "attributes": {
            "name": "AAA - My PDF file.pdf",
            "displayName": "AAA - My PDF file.pdf"
        }
    }
}

我尝试更新的项目版本已命名为 AAA - My PDF file.pdf,因此不应更新任何内容。但是当我发送请求时出现以下错误。

错误:

{
    "jsonapi": {
        "version": "1.0"
    },
    "errors": [
        {
            "id": "30043cce-cfbe-4766-933c-fd9d888e574d",
            "status": "400",
            "code": "BAD_INPUT",
            "title": "One or more input values in the request were bad",
            "detail": "Request input is invalid for this operation."
        }
    ]
}

我为什么会收到此错误以及如何修复它有什么想法吗?

不幸的是,目前不支持 BIM360 Doc 项目的 PATCHing,因此出现错误。错误消息可能更具体,而不是一般的验证失败消息,我会通知工程人员进行相应更新。

尝试使用 A360 集线器进行 PATCHing,它应该会按预期工作。