Message 1 of 5
Question about Data Management API

Not applicable
09-07-2017
02:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
We tryed to do official step-by-step upload file manual for Data Management API (https://developer.autodesk.com/en/docs/data/v2/tutorials/upload-file/), but at step 5 (create the first version of the uploaded file) server answer "400 BAD INPUT", we created request as like as in the manual:
{
"jsonapi": {"version": "1.0"},
"data": {
"type": "items",
"attributes": {
"displayName": "drawing.dwg",
"extension": {
"type": "items:autodesk.core:File",
"version": "1.0"
}
},
"relationships": {
"tip": {
"data": {
"type": "versions",
"id": "1"
}
},
"parent": {
"data": {
"type": "folders",
"id": "urn:adsk.wipprod:fs.folder:co.***"
}
}
}
},
"included": [
{
"type": "versions",
"id": "1",
"attributes": {
"name": "drawing.dwg",
"extension": {
"type": "versions:autodesk.core:File",
"version": "1.0"
}
},
"relationships": {
"storage": {
"data": {
"type": "objects",
"id": "urn:adsk.objects:os.object:test-bucket3-***/***.dwg"
}
}
}
}
]
}
What we do wrong?