2

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

  1. Why aren't we able to hit the endpoint and what are steps to access the same?

  2. 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"
                }
            ]
        }
      }
    ]
}
4
  • Yes, I also notice that this endpoint is what ACC uses but not documented anywhere in APS Datamanagement service. Which means, it is not available via SDK as well? Can some one in APS team confirm. This will be a useful endpoint for many! Commented Aug 27 at 16:31
  • Unfortunately, the endpoint you mentioned is for Autodesk internal use only or for Autodesk Products only, e.g., ACC Web UI. It's not for public customers, so it's expected that you received this error. Such an API won't have any documentation. Commented Aug 28 at 6:38
  • @EasonKang Thanks for your comment. Is there is a better way to get the path of a file from any endpoint while performing recursive search on items? Commented Aug 28 at 13:21
  • @AsyncAwait Unfortunately, there is no shortcut without performing a recursive search. However, some of our customers try to get the folder contents recursively to build the content cache regularly and use that to do a quick search with their own tool sets. For example: github.com/autodesk-platform-services/… Commented Aug 29 at 7:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.