POST /hub/v1/campaigns/{id}/assets

Associates an asset or collection of assets to a campaign.

NameTypeDescription
idstringRequiredCampaign ID
NameTypeDescription
idsarrayRequiredString array of asset ids from Content Builder. When associating a Template Based Email created using the Classic editor to a campaign, use the legacyID as the ID. Retrieve the legacyID using the advanced asset query.
typestringRequiredOptions for the array: EMAIL, automation_definition, calendar_event, triggered, list, group, data_extension, sendable_custom_object, landing_page, facebook_tab, ct_facebook_post, ct_twitter_post, sms_message, push_message, CMS_asset. CMS_ASSET refers to Content Builder assets.

Example Request

Example Response