Skill: Manage Marketing Assets

Reference for the Manage Marketing Assets skill, which creates, reads, edits, reviews, retags and deletes your landing-page copy, emails, social posts and ad copy.

The Manage Marketing Assets skill lets an agent work with the assets in Marketing: write landing-page copy, emails, social posts and ad copy as drafts, move them through review, link them to a goal, and delete them.

Key and role

NeedsFor
Marketing > Marketing Assets Read on the keylist, get, goal_link_count
Marketing > Marketing Assets Write on the keycreate, update, set_status, retag_goal
Marketing > Marketing Assets Delete on the keydelete
A key creator whose role can write assets (every built-in role can)create, update, delete, retag_goal
A key created by an owner or adminset_status. Otherwise 403 INSUFFICIENT_ROLE

Actions

actionRouteWhat it does
listGET /api/v2/marketing-assetsSlim rows without content, newest first. Filter with asset_type, status and search
getGET /api/v2/marketing-assets/{asset_id}The whole asset, including content, with its linked persona, offering, Positioning and account profile
goal_link_countGET /api/v2/marketing-assets/goal-link-countHow many assets are linked to goal_id, as { data: { count } }
createPOST /api/v2/marketing-assetsA new asset, always a draft. Needs name and asset_type
updatePATCH /api/v2/marketing-assets/{asset_id}Changes the name, type, content, external URL or links, and empties the fields in clear_fields. Can’t change the status
set_statusPATCH /api/v2/marketing-assets/{asset_id}/statusMoves the asset to another status
deleteDELETE /api/v2/marketing-assets/{asset_id}Deletes the asset and its approval cards. It can’t be undone
retag_goalPOST /api/v2/marketing-assets/retag-goalMoves every asset linked to from_goal_id to to_goal_id, and returns how many moved

Status moves

FromAllowed to
draftin_review, approved
in_reviewapproved, draft
approvedpublished, in_review
publishedapproved

Moving an asset to approved posts an approval card to the first column of the board in its board_id, unless it comes back from published. If the board refuses the card, the asset is still approved and the answer carries a warning. published only records that the asset is live; it doesn’t publish anything.

Parameters

ParameterTypeUsed byNotes
actionstringAllRequired
asset_idstring (UUID)get, update, set_status, deleteRequired for all four
namestringcreate, updateRequired for create. At most 200 characters
asset_typestringcreate, update, listlanding_page, email, social_post or ad_copy. Required for create; a filter for list
statusstringset_status, listdraft, in_review, approved or published. Required for set_status; a filter for list. Refused on create and update
contentobjectcreate, updateThe asset body, at most 64 KB. update replaces it, so send all of it. See below
external_urlstringcreate, updateAn absolute http:// or https:// URL where the asset lives outside Horizon, at most 2,048 characters
goal_idstring (UUID)create, update, goal_link_countThe goal the asset serves. Required for goal_link_count
board_idstring (UUID)create, updateThe board its approval card goes on
persona_profile_idstring (UUID)create, updateThe persona it is written for
offering_idstring (UUID)create, updateThe core offering it is about
messaging_framework_idstring (UUID)create, updateThe Positioning the copy expresses
account_profile_idstring (UUID)create, updateThe account profile it targets
searchstringlistA case-insensitive part of the name
sortstringlistname for name order; otherwise newest first
limitintegerlist1 to 100. Default 25
cursorstring (UUID)listThe nextCursor from the previous page
from_goal_idstring (UUID)retag_goalRequired. The goal whose assets move
to_goal_idstring (UUID)retag_goalRequired. The goal that receives them. Must differ from from_goal_id and be one of your organization’s goals
clear_fieldsarray of stringsupdateThe fields to empty. See below

Content

asset_typecontent shape
landing_page{ hero, subhead, blocks, cta }. hero at most 200 characters, subhead at most 400, cta (the button text) at most 100. blocks is a non-empty list of { kind, heading, body }, where kind is value_prop or social_proof, heading is at most 200 characters and body at most 2,000
email{ subject, body }
social_post{ channel, body }
ad_copy{ headline, body }

The skill checks landing-page copy against these limits before it sends, and every text in it must be non-empty.

Clearing fields

update can empty goal_id, board_id, persona_profile_id, offering_id, messaging_framework_id, account_profile_id, external_url and content. Name them in clear_fields; a null or blank argument leaves the field alone. Clearing goal_id is the only way to unlink one asset from a goal. name and asset_type can’t be emptied, and create refuses clear_fields.

Refusals

CodeWhy
INSUFFICIENT_ROLE (403)set_status with a key not created by an owner or admin
INVALID_STATUS_TRANSITION (409)The status move isn’t in the table above
SAME_GOAL (400)from_goal_id and to_goal_id are the same goal
INVALID_LINK_ID (400)A link id isn’t a UUID

Related: Assets | Marketing skills | Manage Goals