Try our conversational search powered by Generative AI!

Metadata Plus - Is it possible to create, delete and update via the commerce API?


We have a PIM, in which we set our model structure. This we want to push into epi commerce. Is it possible to create metaclasses and metafields via the epi commerce api?

Thanks in advance!

Mar 04, 2021 15:29

Although Nodes, metaclasses, and meta fields have clear representation in the database but Episerver supports the code first approach. 

However, you can write a service API that can create meta fields and metaclasses based on request. (useful if you have master & slave catalogue structure)

Mar 04, 2021 18:04

Not sure what you meant "epi commerce api", but you can use MetaClass and MetaField class (in Mediachase.MetaDataPlus.Configurator namespace ) to create metaclasses and metafields (and to link them together) 

Mar 04, 2021 23:14
Daniel Sandberg - Mar 05, 2021 7:56
My bad. I was thinking of Service API.

You can just write extensions to ServiceAPI (it's "just a REST endpoint"), using MetaClass and MetaField under the hood to do the same. But it's not available out of the box

Mar 05, 2021 8:32
Daniel Sandberg - Mar 05, 2021 12:06
Okay, Thank you for the explanation Quan.
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.