Skip to main content
Participant
Mar 23, 2021 5:34 PM UTC
Question

Adobe CC Libraries API query parameter issue libraryVersion is required to get response

I'm working with the Adobe CC Libraries APIs, the issue is traying to get the elements of an a Library using: 

 

{{baseUrl}}/api/v1/libraries/:libraryId/elements/:elementId?selector=default

 

I received this error:

 

{
    "message": "USSLibrary.getLibrary(): Library not found.",
    "status": 404
}

 

 

The only way to have access to the library is using the parameter libraryVersion, the api is don't taking the last version as is expected, ex:

 

{{baseUrl}}/api/v1/libraries/:libraryId?libraryVersion=6

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Nancy OShea
Community Expert
Community Expert
Mar 24, 2021 11:36 PM UTC
Nancy O'Shea— Product User & Community Expert
Adobe Employee
Mar 24, 2021 8:22 PM UTC

Hi Roberto,

 

Please doublecheck the library ids you're using in each call. If those are OK, is it possible that the library was deleted? If it was, older versions of the library may still be cached for a limited amount of time, in which case it is possible you would be able to retrieve it with "libraryVersion".

Translate
Participant
Mar 25, 2021 2:36 PM UTC

Hi @Paul Feyertag thanks for your replay, my case is the opposite, I need to do the query without the libraryVersion, the ontly request that works for me is this one: 

{{baseUrl}}/api/v1/libraries/:libraryId?libraryVersion=6

If I remove in this request the libraryVersion, I received this: 

{
   "message": "USSLibrary.getLibrary(): Library not found.",
   "status": 404
}


Adobe API reference: https://www.adobe.io/creative-cloud-libraries/docs/api/#operation/getLibrary

* It is worth mentioning that it is a private library.

Translate
Adobe Employee
Mar 26, 2021 8:39 PM UTC

Hi @Roberto Hernandez,

 

Could you provide the request-ids of your calls to 

{{baseUrl}}/api/v1/libraries/:libraryId?libraryVersion=6

as well as 

{{baseUrl}}/api/v1/libraries/:libraryId

and the email of the account the library belongs to?

 

Thanks,

Paul

Translate