How to properly upload attachments to Autodesk Construction Cloud (ACC) Issues API?
I’m trying to upload an attachment to an issue in Autodesk Construction Cloud using their REST API. While this functionality isn’t documented, I found the endpoint being used in the web interface:
POST https://developer.api.autodesk.com/construction/issues/v1/projects/{projectId}/attachments
{
"isNew": false,
"domainEntityId": "",
"attachments": [
{
"attachmentId": "7c8b2a5b-22e3-4d7a-a8e1-d1b2945dc994",
"displayName": "E400 Onderhoek Type 1 2 copy (1).pdf",
"fileName": "E400 Onderhoek Type 1 2 copy (1).pdf",
"attachmentType": "issue-attachment",
"storageUrn": ""
}
]
}
However, when I make this request with a newly generated attachmentId and storageUrn, I receive a 409 Conflict response.
Question:
What’s the correct way to upload attachments to ACC issues? The 409 Conflict suggests there might be additional steps or requirements I’m missing.
What I’ve Tried:
- Generated new UUIDs for the attachmentId
- Ensured the storageUrn is properly formatted
- Verified the issue ID exists and is accessible
- Verified that the same resource does not exists
Read more here: Source link
