I'm following this guide in the APS docs to upload Revit models.
https://aps.autodesk.com/en/docs/acc/v1/tutorials/files/upload-document-s3/
def post_item(access_token, project_id, folder_id, file_name, storage_id):
items_url = f"{BASE_URL}/data/v1/projects/{project_id}/items"
headers = {
"Authorization": f"Bearer {access_token}",
"Content-Type": "application/vnd.api+json"
}
payload = {
"jsonapi": { "version": "1.0" },
"data": {
"type": "items",
"attributes": {
"name": file_name,
"extension": {
"type": "items:autodesk.bim360:File",
"version": "1.0"
}
},
"relationships": {
"tip": { "data": { "type": "versions", "id": "1" } },
"parent": { "data": { "type": "folders", "id": folder_id } }
}
},
"included": [
{
"type": "versions",
"id": "1",
"attributes": {
"name": file_name,
"extension": {
"type": "versions:autodesk.bim360:File",
"version": "1.0"
}
},
"relationships": {
"storage": {
"data": {
"type": "objects",
"id": storage_id
}
}
}
}
]
}
response = requests.post(items_url, headers=headers, json=payload)
The code above works without throwing any errors. However, I'm getting an issue on ACC where some Revit files are not viewable in Autodesk's model viewer. (See image below for warning icon)
When hovered on the icon, simply states "Processing error. Some file actions aren't available." I have no issue opening the model on Revit, hence ruling out the model issue.
Is there a step I am missing ?
Is there a way to trigger processing via API? Are there tokens required ?
Thank you so much