Skip to main content
Participant
March 23, 2021
Question

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

  • March 23, 2021
  • 2 replies
  • 401 views

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 has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
March 24, 2021
Nancy O'Shea— Product User & Community Expert
Adobe Employee
March 24, 2021

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".

Participant
March 25, 2021

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.

Adobe Employee
March 26, 2021

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