ProductAPI Reference
Assets
Getting started with assets
Media File Model
Details on the media file model can be found here.
Uploading Assets
Populate the Assets
property with OmniumMediaFile
objects to upload assets. External images from the ExternalUrl
property will be uploaded to Omnium's CDN, replacing the Url
property.
Force Upload
If ForceUpload
is set to true:
- The
ExternalUrl
will be uploaded. - The
Url
will be replaced with the new CDN URL. - After replacement,
ForceUpload
is reset to false to avoid re-uploading.