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

Associates an asset or collection of assets to a campaign.

NameTypeDescription
idstringRequired. The ID of the campaign to assign the assets to.
NameTypeDescription
idsarrayRequired. String 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.
typestringRequired. Accepted values are 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, and CMS_asset. CMS_ASSET refers to Content Builder assets.

Example Request

Example Response