https://forge.autodesk.com/blog/how-patch-apis-work-and-some-tips-using-patch-apis
我已经按照上面的两个链接解释了如何修补项目的版本并更新它的名称,但我收到了错误。以下是我输入 Postman 的内容(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."
}
]
}
有什么想法为什么会出现此错误以及如何解决?