I am trying to upload a file by using the "POST projects/:project_id/storage": "Creates a storage location in the OSS where data can be uploaded to."
I retrieved the projectId and folderId where I want to create a storage location for the file "vaac_RevBlockImperial.dwg". I created this 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""" }}}}}"
As a result, I get following response:
{
"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."
}]
}
What does "detail": "No \"extension.type\" found in payload." mean?