Adding asset metadata with the asset using the asset api | Community
Skip to main content
Robert-Harper
New Participant
November 7, 2022
Solved

Adding asset metadata with the asset using the asset api

  • November 7, 2022
  • 1 reply
  • 1010 views

Sorry if this has been answered before.

When submitting an asset for upload using the asset REST API POST method, is it possible to also send the metadata  you want to add to the asset in the same call or would that require a second upload?

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 krati_garg

@robert-harper 
I believe it should be two separate calls, the CREATE call would create the Asset and for Update Metadata, the call would only work when the asset already exists.

 

Also, please find the below links for more information on Assets HTTP API and little caveats related to property namespace when you update the metadata
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-api-assets.html?lang=en#tips-limitationshttps://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?lang=en#tips-best-practices-limitations

 

1 reply

krati_garg
krati_gargAccepted solution
Employee
November 7, 2022

@robert-harper 
I believe it should be two separate calls, the CREATE call would create the Asset and for Update Metadata, the call would only work when the asset already exists.

 

Also, please find the below links for more information on Assets HTTP API and little caveats related to property namespace when you update the metadata
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/mac-api-assets.html?lang=en#tips-limitationshttps://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?lang=en#tips-best-practices-limitations