[英]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.