Can I create an metadata-only asset? Basically an asset record with metadata, but no asset object exists yet. Then later we update that record/asset with the actual file. The use case is I'd like to create asset records before that actual finished good asset is ready. That way I have an AssetID of the asset before there is an asset.
AEM Assets ver. 6.3
Message was edited by: Jim Presley - added AEM version
Solved! Go to Solution.
That appears to need to reference a file though.
eg: // to create an asset AssetManager assetManager = resolver.adaptTo(AssetManager.class); Asset newAsset = assetManager.createAsset("/path/to/asset/document.pdf");
I'm thinking the system can't create an asset record without a file object to refer to. I can accomplish what I need to do by creating a small file with the known final asset filename and ingest beforehand, then update with the real asset when ready.
Is that not correct?