Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Unable to get the complete metadata of asset using HTTP API

uafzal
Level 2
Level 2

I am using the Assets HTTP API. One of the limitations is "Asset API does not return the complete metadata. In API the namespaces are hardcoded and those only get returned. If you need whole metadata, then look at the asset path /jcr_content/metadata.json."

 

I am accessing the following path but it still does not show the complete metadata

<URL>/api/assets/image.png.json/jcr_content/metadata.json

 

Am I accessing an invalid endpoint?

Assets_HTTP_API
1 Accepted Solution
VikramGaur
Correct answer by
Employee
Employee

Hi,

Welcome to AEM Community !!
Are you able to access the asset's json, when you try <URL>/api/assets/image.png.json?

If yes, please try adding /jcr:content/metadata.json on that URL.

 

Note : I was trying to access the metadata on my local AEM Author instance and this works http://localhost:<portnumber>/content/dam/folder/assetname/jcr:content/metadata.json

Thanks,

Vikram Gaur

View solution in original post

1 Reply
VikramGaur
Correct answer by
Employee
Employee

Hi,

Welcome to AEM Community !!
Are you able to access the asset's json, when you try <URL>/api/assets/image.png.json?

If yes, please try adding /jcr:content/metadata.json on that URL.

 

Note : I was trying to access the metadata on my local AEM Author instance and this works http://localhost:<portnumber>/content/dam/folder/assetname/jcr:content/metadata.json

Thanks,

Vikram Gaur

View solution in original post