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
| Needs | For |
|---|---|
| Marketing > Marketing Assets Read on the key | list, get, goal_link_count |
| Marketing > Marketing Assets Write on the key | create, update, set_status, retag_goal |
| Marketing > Marketing Assets Delete on the key | delete |
| 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 admin | set_status. Otherwise 403 INSUFFICIENT_ROLE |
Actions
action | Route | What it does |
|---|---|---|
list | GET /api/v2/marketing-assets | Slim rows without content, newest first. Filter with asset_type, status and search |
get | GET /api/v2/marketing-assets/{asset_id} | The whole asset, including content, with its linked persona, offering, Positioning and account profile |
goal_link_count | GET /api/v2/marketing-assets/goal-link-count | How many assets are linked to goal_id, as { data: { count } } |
create | POST /api/v2/marketing-assets | A new asset, always a draft. Needs name and asset_type |
update | PATCH /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_status | PATCH /api/v2/marketing-assets/{asset_id}/status | Moves the asset to another status |
delete | DELETE /api/v2/marketing-assets/{asset_id} | Deletes the asset and its approval cards. It can’t be undone |
retag_goal | POST /api/v2/marketing-assets/retag-goal | Moves every asset linked to from_goal_id to to_goal_id, and returns how many moved |
Status moves
| From | Allowed to |
|---|---|
draft | in_review, approved |
in_review | approved, draft |
approved | published, in_review |
published | approved |
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
| Parameter | Type | Used by | Notes |
|---|---|---|---|
action | string | All | Required |
asset_id | string (UUID) | get, update, set_status, delete | Required for all four |
name | string | create, update | Required for create. At most 200 characters |
asset_type | string | create, update, list | landing_page, email, social_post or ad_copy. Required for create; a filter for list |
status | string | set_status, list | draft, in_review, approved or published. Required for set_status; a filter for list. Refused on create and update |
content | object | create, update | The asset body, at most 64 KB. update replaces it, so send all of it. See below |
external_url | string | create, update | An absolute http:// or https:// URL where the asset lives outside Horizon, at most 2,048 characters |
goal_id | string (UUID) | create, update, goal_link_count | The goal the asset serves. Required for goal_link_count |
board_id | string (UUID) | create, update | The board its approval card goes on |
persona_profile_id | string (UUID) | create, update | The persona it is written for |
offering_id | string (UUID) | create, update | The core offering it is about |
messaging_framework_id | string (UUID) | create, update | The Positioning the copy expresses |
account_profile_id | string (UUID) | create, update | The account profile it targets |
search | string | list | A case-insensitive part of the name |
sort | string | list | name for name order; otherwise newest first |
limit | integer | list | 1 to 100. Default 25 |
cursor | string (UUID) | list | The nextCursor from the previous page |
from_goal_id | string (UUID) | retag_goal | Required. The goal whose assets move |
to_goal_id | string (UUID) | retag_goal | Required. The goal that receives them. Must differ from from_goal_id and be one of your organization’s goals |
clear_fields | array of strings | update | The fields to empty. See below |
Content
asset_type | content 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
| Code | Why |
|---|---|
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