【问题标题】:How to PATCH a version of an item in BIM360 on Postman如何在 Postman 的 BIM360 中修补项目的版本
【发布时间】:2019-07-20 08:08:19
【问题描述】:

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."
        }
    ]
}

是否有任何想法为什么我会收到此错误以及如何解决?

【问题讨论】:

    标签: postman patch autodesk-forge autodesk-bim360


    【解决方案1】:

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

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

    【讨论】:

    • 感谢您的更新,但我目前仅处理 BIM360 Doc 至 PATCH 项目和版本
    猜你喜欢
    • 2019-07-21
    • 2019-07-21
    • 1970-01-01
    • 2020-01-07
    • 1970-01-01
    • 2020-04-13
    • 2016-08-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多