[Python] What authorization am I missing when writing a PATCH API to Autodesk Construction...

Discussão em 'Python' iniciado por Stack, Maio 13, 2025.

  1. Stack

    Stack Membro Participativo

    The goal of my API is to allow a batch PATCH of asset statuses in ACC. When I run my code, I am getting error code 403 which is "The request was not accepted because the client is authenticated, but is not authorized to access the target resource".

    I am currently an Account Admin in Autodesk so I am wondering what authorization I am missing.

    I have successfully used a GET API to pull a list of all current Assets and their Status (along with other info but I am only needing to update status at this time). Using this list, I have created an Excel file that captures the id and the status_id. This new list has the updated status_id for my assets that I would like to update.

    For my current API, I am using panda to compare the current status against the Excel file. And finding any discrepancies, patching the new status. The rest of my API works. My printout shows the assets that had mis-matches. It indicates the old status_id and the new one. But when it attempts to patch, I get the 403 error.

    Continue reading...

Compartilhe esta Página