admin管理员组

文章数量:1296485

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 /{projectId}/attachments

{
    "isNew": false,
    "domainEntityId": "<issueId>",
    "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": "<storage urn>"
        }
    ]
}

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

本文标签: How to properly upload attachments to Autodesk Construction Cloud (ACC) Issues APIStack Overflow