Skip to main content

Content Hub actions

The Content Hub extension provides actions for creating and managing digital assets in Amplience Content Hub within Workforce flows. Use these actions to upload images, update metadata, manage workflow status, and organise assets as part of your automated content processes.

Tip

These action descriptions cover the most commonly used inputs and outputs. When designing flows, you may also notice additional input and output variables.

Upload Image Asset
Link copied!

Creates a new asset in Content Hub from a source image.

Inputs

InputTypeRequiredDescription
imageobjectYesThe source image to upload. Must include type (must be "Image") and url. Optionally includes id and tags
filenamestringYesThe filename to use when storing the asset (e.g. product-1.jpg)
namestringYesA programmatic identifier for the asset, without a file extension (e.g. product-1)
modestringNoWhat to do if an asset with the same name already exists. Accepted values: rename_unique (default), overwrite
inheritTagsbooleanNoWhen enabled, tags from the input image are copied to the new asset. Default: true
assetRepositoryIdstringNoThe Asset Repository where the new asset will be stored
folderIdstringNoThe folder within the repository where the asset will be saved

Outputs

OutputTypeDescription
asset.idstringThe ID of the newly created asset

Featured in these example flows

Publish Asset
Link copied!

Publishes an asset in Content Hub.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to publish

Outputs

OutputTypeDescription
job.idstringThe unique identifier of the publishing job that was created

Rename Asset
Link copied!

Updates the file name or API name of an existing asset in Content Hub.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to rename
filenamestringNoThe new filename to use when storing or downloading the asset (e.g. product-1.jpg)
namestringNoThe new programmatic identifier for the asset, without a file extension (e.g. product-1)
modestringNoWhat to do if an asset with the same name already exists. Accepted values: rename_unique (default), overwrite

Outputs

No output properties are returned by this action.

Move Asset
Link copied!

Moves an existing asset to a different repository or folder in Content Hub.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to move
assetRepositoryIdstringNoThe Asset Repository to move the asset to
folderIdstringNoThe folder within the target repository to move the asset to
modestringNoWhat to do if an asset with the same name already exists in the target location. Accepted values: rename_unique (default), overwrite

Outputs

No output properties are returned by this action.

Transition Asset Status
Link copied!

Transitions an asset to a new workflow status in Content Hub.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to transition
newStatusstringNoThe new workflow status to assign. Accepted values: dam:draft, dam:archived, dam:review, dam:rejected, dam:approved

Outputs

No output properties are returned by this action.

Update Asset Tags
Link copied!

Adds or removes tags on an existing asset in Content Hub.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to update
addarray of stringsNoTags to add to the asset
removearray of stringsNoTags to remove from the asset

Outputs

No output properties are returned by this action.

Replace Image Asset
Link copied!

Replaces the image file associated with an existing asset in Content Hub, while keeping the asset's ID and metadata.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to replace
imageobjectNoThe new source image to upload. Must include type (must be "Image") and url. Optionally includes id and tags
inheritTagsbooleanNoWhen enabled, tags from the input image are copied to the asset. Default: true

Outputs

No output properties are returned by this action.

Update Asset Alt Text
Link copied!

Updates the default and locale-specific alt text descriptions on an asset in Content Hub.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to update
defaultAltTextstringNoA default phrase that explains the image content (e.g. White running shoes with blue soles on a wooden floor)
altTextVariantsobjectNoLocale-specific alt text descriptions. Must include a _meta object with schema set to http://bigcontent.io/cms/schema/v1/core#/definitions/localized-value, and a values array of objects each with locale (string, required) and value (string, required)

Outputs

No output properties are returned by this action.

Featured in these example flows

Adding actions to flows

Inputs, outputs and ports

Input field variables

Developing extensions