Duplicating a model doesn't give an error

Hello all,

I’m trying to create models (api/assetmodel/) in a programmatic way. Inserting the same data twice results in the creation of a new model, while I would expect an error as the model is effectively duplicated. Is this the intended behaviour? Is there a way (e.g. in a configuration file) to force it to only accept unique models?