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

New Here ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

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

 

 

TOPICS
Libraries

Views

128

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 25, 2021 Mar 25, 2021

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2021 Mar 26, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

Related Links:

https://forums.creativeclouddeveloper.com/

https://www.adobe.io/creative-cloud-libraries/

 

Nancy O'Shea, Adobe Product User & Community Professional
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines