我正在尝试使用“POST projects/:project_id/storage”上传文件:“在 OSS 中创建一个可以上传数据的存储位置。”
我检索了要为文件“vaac_RevBlockImperial.dwg”创建存储位置的 projectId 和 folderId。我创建了这个 curl-call:
curl
-X POST
-H "Authorization: Bearer 3-legged-token-with-data:create-scope"
-H "Accept: application/vnd.api+json"
-H "Content-Type: application/vnd.api+json"
"https://developer.api.autodesk.com/data/v1/projects/a.cGVyc30uYWw6dWUyOTNmYmU0I0QyMDE2MDUwOTMxNzU3Mjgx/storage"
-d "{"""data""": {"""type""": """object""", """attributes""": {"""name""": """vaac_RevBlockImperial.dwg"""}, """relationships""": { """target""": {"""data""": { """type""": """folders""", """id""": """urn:adsk.wipprod:fs.folder:co.z9LUCe1_QoKWT8VFukdc9Q""" }}}}}"
结果,我得到以下响应:
{
"jsonapi": {
"version": "1.0"
},
"errors": [{
"id": "2919a501-a362-46c4-a441-03fefcacb7b2",
"status": "400",
"code": "BAD_INPUT",
"title": "One or more input values in the request were bad",
"detail": "No \"extension.type\" found in payload."
}]
}
"detail": "No \"extension.type\" found in payload." 是什么意思?意思是?