簡體   English   中英

如何在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 https://developer.api.autodesk.com/data/v1/projects/:project_id/versions/:version_id https://developer.api.autodesk.com/data/v1/projects/:project_id/versions/:version_id versions /: 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,因此會出現錯誤。 錯誤消息可能是更具體的消息,而不是一般的驗證失敗消息,我將讓Engineering進行相應的更新。

嘗試使用A360集線器修補,它應該可以正常工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM