Contentful logo

Contentful Community

Running migrations on assets

Hi there !
I’m trying to add tags to assets through a migration (the goal is to identify all the assets that are not linked to any entry), but I cannot really find what is the content type to use in the ‘migration.setTagsForEntries’ ?
If someone has any clue, I’ll take it :slight_smile: thanks !

Hi @camille

Assets are not considered part of the Content-types. It would probably be better to use a simple script that uses CMA to apply a set of Tags to the assets you need.