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.

Prerequisites
Link copied!

When installing the Content Hub extension on your hub, you must specify either:

Or

  • A Client ID and Client Secret (which you can request from Amplience Support).

Get Asset by ID
Link copied!

Retrieves the full details of an existing asset in Content Hub by its ID.

Inputs

InputTypeRequiredDescription
assetIdstringYesThe ID of the asset to retrieve

Outputs

OutputTypeDescription
asset.idstringThe unique identifier of the asset
asset.typestringThe type of the asset
asset.mimeTypestringThe MIME type of the asset
asset.namestringThe API name of the asset
asset.labelstringThe label of the asset
asset.srcNamestringThe source filename of the asset
asset.thumbFilestringThe thumbnail file path for the asset
asset.folderIDstringThe ID of the folder containing the asset
asset.createdDatenumberThe timestamp when the asset was created
asset.timestampnumberThe last updated timestamp of the asset
asset.revisionNumbernumberThe current revision number of the asset
asset.publishStatusstringThe publish status of the asset. One of: NOT_PUBLISHED, PUBLISHED, PUBLISH_IN_PROGRESS, UNPUBLISH_IN_PROGRESS
asset.tagsarray of stringsTags applied to the asset
asset.relationshipsobjectA map of related content items keyed by relationship type. Each entry is an array of objects containing schema, schemaID, PK, and variants

Upload Asset
Link copied!

Uploads an asset from a URL into Content Hub.

Inputs

InputTypeRequiredDescription
urlstringYesThe URL of the asset to upload (e.g. https://example.com/video.mp4)
namestringYesThe filename to use when storing or downloading the asset (e.g. product-1.jpg)
labelstringYesA programmatic identifier for the asset, without a file extension (e.g. product-1)
typestringYesThe type of asset being uploaded. Accepted values: image, video, document, other
modestringNoWhat to do if an asset with the same name already exists. Accepted values: rename_unique (default), overwrite
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

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
waitForJobIdsarray of stringsNoIDs of jobs that must complete before the asset is published

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

Assign Video Transcoding Profiles
Link copied!

Assigns one or more video transcoding profiles to a video asset in Content Hub, triggering the associated transcoding jobs.

Info

You must assign a video transcoding profile to a video before you can play it.

Inputs

InputTypeRequiredDescription
videoAssetIdstringYesThe ID of the video asset to assign transcoding profiles to
videoProfileIdsarray of stringsYesThe IDs of the video transcoding profiles to assign to the asset

Outputs

OutputTypeDescription
statusstringThe overall status of the transcoding jobs
contentarrayA list of job result objects. Each contains id (job ID), jobs (array of job IDs), and status (job status)

Changelog
Link copied!

v1.1.0

New actions

  • Get Asset by ID — retrieve the full details of an asset by its ID, including metadata, publish status, tags, and relationships
  • Upload Asset — upload any asset type (image, video, document, or other) from a URL directly into Content Hub
  • Assign Video Transcoding Profiles — assign one or more transcoding profiles to a video asset to trigger the associated transcoding jobs

Updated actions

  • Publish Asset — added optional waitForJobIds input, allowing you to specify jobs that must complete before the asset is published

Adding actions to flows

Inputs, outputs and ports

Input field variables

Developing extensions