I'm in the process of building a search functionality through this endpoint. This is not a documented endpoint in APS and I came across this while profiling network calls in ACC. ACC docs UI uses this endpoint to search for documents and I am trying to mimic the same functionality in my application.
https://developer.api.autodesk.com/dm/v3/projects/%7B%7BprojectId%7D}/entities:search
Basically the intent is to recursively search for latest version of items with a file name search. While doing that, I also need access to the details of ancestor folders of all filtered documents.
When trying this from our UI application, I see a CORS issue although I've added the following to headers:
"Access-Control-Allow-Origin": "*",
On the other hand, trying via postman, I see the following error:
{
"developerMessage": "The client_id specified does not have access to the api product",
"moreInfo": "https://aps.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/",
"errorCode": "AUTH-001"
}
although I've granted the APS application access to all available APIs
Why aren't we able to hit the endpoint and what are steps to access the same?
I'm interested in accessing the parents (specifically name and urn) of the filtered documents (see below response for the same endpoint from the APS ACC production website). Is this endpoint the right way for us to access or are there other recommendations
{
...
documents: [
{
"parentFolder": {
...
"parents": [
{
...
"urn": "urn:adsk.wipprod:fs.folder:co.xxxxxx",
"name": "Project Files"
}
]
}
}
]
}