Why is Autodesk complaining when I try to move a folder using the Autodesk Data Management API?
I’m trying to move a folder using PATCH :folder_id documented here:
aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-PATCH/
And I get the following response:
{
"jsonapi": {
"version": "1.0"
},
"errors": [
{
"id": "",
"status": "400",
"code": "BAD_INPUT",
"title": "One or more input values in the request were bad",
"detail": "Request should not have a \"data.relationships\" section."
}
]
}
However, I double checked the structure in the documentation and it looks right. It specifically says I can include a relationships section.
This is what my request body looks like:
{
"jsonapi": {
"version": "1.0"
},
"data": {
"type": "folders",
"id": "urn:adsk.wipprod:fs.folder:co.",
"relationships": {
"parent": {
"data": {
"type": "folders",
"id": "urn:adsk.wipprod:fs.folder:co."
}
}
}
}
}
I was expecting a successful response as described in the API.
Read more here: Source link
