HTTP API Asset get metadata | Community
Skip to main content
marcinn
April 13, 2021
Solved

HTTP API Asset get metadata

  • April 13, 2021
  • 1 reply
  • 3632 views

Hi

 

Can the user somehow configure, which metadata fields will be returned via asset API?

I need some additional fields, but unfortunately, I can't see them in returned JSON.

 

Thank you in advance for any tips. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @marcinn 

 

Have you added the additional matadata to assets? If it's added to the assets, it will be fetched by assets API.

Such as if you have an additional field as "something" which is having a value of "Somevalue" in the metadata node of the asset, when you try to fetch the metadata for the perticular asset, it will fetch the additional metadata and will show in the JSON response.

 

http://localhost:4502/api/assets/wknd-events/wknd-events.jpg.json

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
April 13, 2021

Hi @marcinn 

 

Have you added the additional matadata to assets? If it's added to the assets, it will be fetched by assets API.

Such as if you have an additional field as "something" which is having a value of "Somevalue" in the metadata node of the asset, when you try to fetch the metadata for the perticular asset, it will fetch the additional metadata and will show in the JSON response.

 

http://localhost:4502/api/assets/wknd-events/wknd-events.jpg.json

 

Thanks!

marcinn
marcinnAuthor
April 13, 2021

Hi

 

many thanks for your answer, unfortunately, it doesn't look like in my case. I've added many fields to metadata, but I'm getting only few. 

 

 

but my asset in CRX looks like this

 

I've also Dynamic Media configured there, and frankly speaking, I need few scene7 fields.