Optional
description?: { File object for this asset
Optional
details?: Record<string, any>Details for the file, depending on file type (example: image size in bytes, etc)
Optional
upload?: stringUrl where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone.
Optional
uploadOptional
url?: stringUrl where the file is available at the Contentful media asset system. This field won't be available until the asset is processed.
Title for this asset
Optional
metadataArchives the object
Object returned from the server with updated metadata.
Deletes this object on the server.
Promise for the deletion. It contains no data, but the Promise error case should be handled.
Triggers asset processing after an upload, for the files uploaded to all locales of an asset.
Optional
options: AssetProcessingForLocaleAdditional options for processing
Object returned from the server with updated metadata.
If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.
Triggers asset processing after an upload, for the file uploaded to a specific locale.
Locale which processing should be triggered for
Optional
Options: AssetProcessingForLocaleObject returned from the server with updated metadata.
If the asset takes too long to process. If this happens, retrieve the asset again, and if the url property is available, then processing has succeeded. If not, your file might be damaged.
Publishes the object
Object returned from the server with updated metadata.
Unarchives the object
Object returned from the server with updated metadata.
Unpublishes the object
Object returned from the server with updated metadata.
Sends an update to the server with any changes made to the object's properties
Object returned from the server with updated changes.
Description for this asset