简体   繁体   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/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/ https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-version_id-PATCH/

I have followed the two links above explaining how to PATCH a version of an item and update the name of it but I am getting errors. 我已经按照上面的两个链接说明了如何修补项目的版本并更新其名称,但出现错误。 Below is what I inputted into Postman ( version_id inside the URI has been already encoded): 以下是我输入到Postman中的内容( URI version_id已被编码):

URI: https://developer.api.autodesk.com/data/v1/projects/:project_id/versions/: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

Authorization: Bearer ***************************** 授权:不 Bearer *****************************

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

Body: 身体:

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

The item version I am trying to update is already named AAA - My PDF file.pdf so nothing should be updated. 我要更新的项目版本已被命名为AAA - My PDF file.pdf因此不应进行任何更新。 But when I send the request I get the following error. 但是,当我发送请求时,出现以下错误。

Error: 错误:

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

Are there any ideas why I am getting this error and how can I fix it? 有什么想法为什么我会收到此错误以及如何解决它?

Unfortunately at the moment PATCHing for BIM360 Doc items is unsupported and hence the error. 不幸的是,目前不支持BIM360 Doc项目的PATCHing,因此会出现错误。 The error message could have been more specific rather than a general validation failure message and I will let Engineering know to update accordingly. 错误消息可能是更具体的消息,而不是一般的验证失败消息,我将让Engineering进行相应的更新。

Try PATCHing with A360 hub and it should work as expected. 尝试使用A360集线器修补,它应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Postman上为BIM360张贴或修补用户角色和access_level - How to POST or PATCH users role and access_level for BIM360 on Postman 如何使用 Postman 或 .NET 设置 BIM360 项目的状态 - How to set the status of a BIM360 Project using Postman or .NET 如何在.NET中获取分配给BIM360项目的用户 - How to GET users assigned to a BIM360 project in .NET 如何使用POSTMAN更新BIM 360项目的图像 - How to update a BIM 360 project's image using POSTMAN 邮递员 - 将用户发布到 BIM 360 错误中? - Postman - POST users into BIM 360 bug? 如何使用Postman在BIM 360中获取项目的图像? - How do you GET a Project's image in BIM 360 using Postman? 邮递员-如何使用V2端点将用户导入BIM 360项目 - Postman - How to Import Users to a BIM 360 Project Using the V2 Endpoint 文件上传到 BIM 360 在 Postman 中工作,但不适用于 React JS - File Upload to BIM 360 works in Postman but not with React JS BIM 360现场API问题V1:GET请求与Postman完美配合,使用RestSharp响应“未经授权” - BIM 360 Field API Issues V1: GET Request works perfectly with Postman, responds “Unauthorized” with RestSharp 如果需要验证,如何通过POSTMAN在FIREBASE上修补数据 - How to patch data on FIREBASE through POSTMAN if authotization is needed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM