Skip to main content

Dynamic Content actions

The Dynamic Content extension provides actions for managing content items, content types, and content type schemas programmatically within Workforce flows. Use these actions to create, retrieve, update, publish, localize, and search Dynamic Content resources 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.

Content items
Link copied!

Get Content Item
Link copied!

Get a content item by ID.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to retrieve

Outputs

OutputTypeDescription
contentItemobjectThe retrieved content item. See Content item object

Get Linked Child Content Items
Link copied!

Gets all linked content item children for a given content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to retrieve linked children for
excludeSelfbooleanNoExclude the content item with the given ID from the results. Default: true

Outputs

OutputTypeDescription
contentItemsarrayA list of linked child content items. Each entry follows the Content item object schema

Get Linked Parent Content Items
Link copied!

Gets all linked content item parents for a given content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to retrieve linked parents for
excludeSelfbooleanNoExclude the content item with the given ID from the results. Default: true

Outputs

OutputTypeDescription
contentItemsarrayA list of linked parent content items. Each entry follows the Content item object schema

Search Content Items
Link copied!

Searches for content items with optional filters.

Inputs

InputTypeRequiredDescription
textstringNoFilter by text
labelstringNoFilter by label
deliveryKeystringNoFilter by delivery key
contentTypestringNoFilter by content type URI
assigneesarray of stringsNoFilter by assignee user IDs
statusstringNoFilter by status (e.g. ACTIVE, ARCHIVED, UNARCHIVED)
publishingStatusstringNoFilter by publishing status (e.g. LATEST, UNPUBLISHED, NONE)
folderIdstringNoFilter by folder ID
repositoryIdstringNoFilter by repository ID
localearray of stringsNoFilter by locales (e.g. en-US)
lastModified.startstringNoStart date keyword (e.g. NOW, -2:DAYS, 1:MONTH)
lastModified.endstringNoEnd date keyword (e.g. NOW, -2:DAYS, 1:MONTH)
page.numberstringNoZero-indexed page number
page.sizestringNoResults per page. Default: 20
page.sortstringNoSort order (e.g. lastModifiedDate,asc)

Outputs

OutputTypeDescription
contentItemsarrayA list of matching content items. Each entry follows the Content item object schema
pageobjectPagination details (size, totalElements, totalPages, number, nextPage, prevPage)

Create Content Item
Link copied!

Create a new content item in Dynamic Content.

Inputs

InputTypeRequiredDescription
contentTypeIdstringYesThe content type URI to create the content item with
contentRepositoryIdstringYesThe destination repository ID
labelstringYesThe label for the content item
bodyobjectYesThe content body as a JSON object
folderIdstringNoThe destination folder ID
localestringNoThe locale to assign to the new content item (e.g. en-US)

Outputs

OutputTypeDescription
contentItemobjectThe newly created content item. See Content item object

Update Content Item
Link copied!

Update an existing content item.

Inputs

InputTypeRequiredDescription
contentItemIdstringYesThe ID of the content item to update
bodyobjectNoThe updated content body as a JSON object
modestringNoMerge mode used when updating the body. Default: merge. Accepted values: merge, replace

Outputs

OutputTypeDescription
contentItemobjectThe updated content item. See Content item object

Rename Content Item
Link copied!

Rename a content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to rename
labelstringYesThe new label for the content item

Outputs

OutputTypeDescription
contentItemobjectThe renamed content item. See Content item object

Move Content Item
Link copied!

Move a content item to a different folder.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to move
folderIdstringYesThe destination folder ID

Outputs

OutputTypeDescription
contentItemobjectThe moved content item. See Content item object

Copy Content Item
Link copied!

Copy a content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to copy
labelstringNoThe label for the copied content item
folderIdstringNoThe destination folder ID for the copied content item

Outputs

OutputTypeDescription
contentItemobjectThe copied content item. See Content item object

Assign Content Item
Link copied!

Assign a content item to one or more users.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to assign
assigneesarray of stringsNoList of user IDs to assign the content item to

Outputs

OutputTypeDescription
contentItemobjectThe updated content item. See Content item object

Get Content Item Localizations
Link copied!

Gets the localizations for a content item.

Inputs

InputTypeRequiredDescription
contentItemIdstringYesThe ID of the content item to retrieve localizations for
localestringNoFilter results to a specific locale (e.g. en-US)
excludeSelfbooleanNoExclude the content item with the given ID from the results. Default: true

Outputs

OutputTypeDescription
contentItemsarrayA list of localization objects (id, locale, createdBy, createdDate, _links)
pageobjectPagination details (size, totalElements, totalPages, number, nextPage, prevPage)

Localize Content Item
Link copied!

Localizes a content item by creating localized variants for the specified locales.

Note

A content item must have a locale assigned before localizing, otherwise an error will occur.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to localize
localesarray of stringsYesList of locales to create localized variants for (e.g. en-US, fr-FR)
sourceLocalestringNoLocale of the source content item, if supplied

Outputs

OutputTypeDescription
localizationJobobjectLocalization job details (status, rootContentItem, requestedLocales, createdBy, createdDate)

Sync Content Item
Link copied!

Syncs a content item to a destination hub.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to sync
destinationHubIdstringYesThe destination hub ID
ignoreSchemaValidationbooleanNoIgnore schema validation during sync. Default: false
forceSyncbooleanNoForce the sync even if the item is up to date. Default: false

Outputs

OutputTypeDescription
syncJobobjectSync job details (jobId, _links)

Set Workflow State
Link copied!

Sets the workflow state on a content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item
workflowStateIdstringNoThe ID of the workflow state to assign

Outputs

OutputTypeDescription
contentItemobjectThe updated content item. See Content item object

Publish Content Item
Link copied!

Publish a content item.

Inputs

InputTypeRequiredDescription
contentItemIdstringYesThe ID of the content item to publish

Outputs

No output properties are returned by this action.

Unpublish Content Item
Link copied!

Unpublish a content item.

Inputs

InputTypeRequiredDescription
contentItemIdstringYesThe ID of the content item to unpublish

Outputs

No output properties are returned by this action.

Archive Content Item
Link copied!

Archive a content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to archive

Outputs

OutputTypeDescription
contentItemobjectThe archived content item. See Content item object

Unarchive Content Item
Link copied!

Unarchive a content item.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content item to unarchive

Outputs

OutputTypeDescription
contentItemobjectThe unarchived content item. See Content item object

Content types and schemas
Link copied!

Get Content Type Schema
Link copied!

Get a content type schema by ID.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content type schema to retrieve

Outputs

OutputTypeDescription
contentTypeSchemaobjectContent type schema details (status, body, schemaId, validationLevel, createdBy, lastModifiedBy, createdDate, lastModifiedDate, version, id, _links)

List Content Type Schemas
Link copied!

Lists content type schemas from the hub with optional filters.

Inputs

InputTypeRequiredDescription
schemaUristringNoFilter results to an exact match on schema URI
statusstringNoFilter by status. Accepted values: ACTIVE, ARCHIVED
page.numberstringNoZero-indexed page number
page.sizestringNoResults per page. Default: 100

Outputs

OutputTypeDescription
schemasarrayA list of content type schema objects
pageobjectPagination details (size, totalElements, totalPages, number, nextPage, prevPage)

Get Content Type
Link copied!

Get a content type by ID.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the content type to retrieve

Outputs

OutputTypeDescription
contentTypeobjectContent type details (id, contentTypeUri, status, settings, _links)

List Content Types
Link copied!

Lists content types with optional filters.

Inputs

InputTypeRequiredDescription
schemaUristringNoFilter by schema URI
statusstringNoFilter by status. Accepted values: ACTIVE, ARCHIVED
page.numberstringNoZero-indexed page number
page.sizestringNoResults per page. Default: 100
page.sortstringNoSort order (e.g. lastModifiedDate,asc)

Outputs

OutputTypeDescription
contentTypesarrayA list of content type objects
pageobjectPagination details (size, totalElements, totalPages, number, nextPage, prevPage)

Get Effective Content Type
Link copied!

Get the effective (resolved) content type by ID. This returns the content type in the form of its underlying JSON Schema.

Inputs

InputTypeRequiredDescription
idstringYesThe ID of the effective content type to retrieve

Outputs

OutputTypeDescription
contentTypeobjectResolved content type JSON Schema ($schema, $id, title, description, properties)

Hub
Link copied!

Get Hub Settings
Link copied!

Get the settings for the currently configured hub.

Inputs

This action takes no inputs.

Outputs

OutputTypeDescription
hubobjectHub settings including id, name, label, description, plan, organisationId, settings, and _links

Content item object
Link copied!

The following fields are returned on the contentItem output object for actions that return a content item:

FieldTypeDescription
idstringContent item ID
contentRepositoryIdstringContent repository ID
bodyobjectContent item body
labelstringContent item label
folderIdstringFolder ID
assigneesarrayList of assignee user IDs
localestringLocale
versionnumberVersion number
statusstringStatus
workflow.statestringWorkflow state
publishingStatusstringPublishing status
lastPublishedVersionnumberLast published version
createdBystringCreated by user
createdDatestringCreated date
lastModifiedBystringLast modified by user
lastModifiedDatestringLast modified date
validationStatestringValidation state
deliveryIdstringDelivery ID
_linksobjectHAL links

Adding actions to flows

Inputs, outputs and ports

Input field variables

Developing extensions