Skill: Manage Brand Kit
Reference for the Manage Brand Kit skill, which lists, reads, creates and updates your brand kits and chooses the default kit.
The Manage Brand Kit skill lets an agent read and update your brand kits, add a kit, and choose which kit is the default. A call that names no kit acts on the default kit.
Key and role
| Needs | For |
|---|---|
| Marketing > Brand Kit Read on the key | get, list |
| Marketing > Brand Kit Write on the key | create, put, set_default |
| A key created by an owner or admin | create, put, set_default. Otherwise 403 INSUFFICIENT_ROLE |
The skill can’t delete a kit. Delete kits in Marketing > Brand Kit.
Actions
action | Route | What it does |
|---|---|---|
get | GET /api/v2/brand-kit, or GET /api/v2/brand-kit/kits/{kit_id} | Without kit_id, the default kit. NOT_FOUND until your organization has a kit. With kit_id, that kit |
list | GET /api/v2/brand-kit/kits | Your kits, oldest first, each with its id, name, whether it is the default, when it changed and its logo URLs |
create | POST /api/v2/brand-kit/kits | Adds a kit. Needs name; the other fields are as for put. Your organization’s first kit becomes its default |
put | PUT /api/v2/brand-kit, or PUT /api/v2/brand-kit/kits/{kit_id} | Changes the fields you send on the default kit, or on kit_id’s kit, and empties the ones in clear_fields. Needs at least one of them. With kit_id, name renames the kit |
set_default | POST /api/v2/brand-kit/kits/{kit_id}/default | Makes kit_id’s kit the default. The old default stays as an ordinary kit |
Parameters
| Parameter | Type | Used by | Notes |
|---|---|---|---|
action | string | All | Required. get, list, create, put or set_default |
kit_id | string (UUID) | get, put, set_default | The kit to act on, from list. Leave it out for the default kit. Required for set_default. Not taken by list or create |
name | string | create, put | Required for create. At most 120 characters, unique in your organization ignoring case. On put, renames the kit and needs kit_id |
cursor | string | list | The nextCursor from the previous page |
logo_url | string | create, put | An absolute http:// or https:// URL on a public host, at most 2,048 characters. Replacing or clearing it drops the uploaded PNG copy |
primary_colors | array of strings | create, put | Up to 12 hex colours such as #0F172A. Replaces the whole list |
secondary_colors | array of strings | create, put | Up to 12 hex colours. Replaces the whole list |
voice | string | create, put | How the brand sounds. At most 500 characters |
tagline | string | create, put | At most 300 characters |
elevator_pitch | string | create, put | At most 2,000 characters |
brand_pillars | array of { id, name, description } | create, put | The whole list, at most 10. Each name at most 120 characters, each description at most 500. Keep an existing pillar’s id, because Positioning refers to it; give a new pillar a new UUID. A pillar you leave out is removed |
messaging_defaults | object | create, put | Default messaging keyed by linkedin, email and landing_page, each at most 1,000 characters. Sending any channel replaces the whole map, so a channel you leave out is erased |
clear_fields | array of strings | put | The fields to empty. See below |
Read the kit with get before you send brand_pillars or messaging_defaults, and send back everything that should stay.
Clearing fields
put can empty logo_url, primary_colors, secondary_colors, voice, tagline, elevator_pitch, brand_pillars and messaging_defaults. Name them in clear_fields; a null, blank or empty argument leaves the field alone. Clearing brand_pillars removes every pillar. create refuses clear_fields.
Refusals
| Code | Why |
|---|---|
INSUFFICIENT_ROLE (403) | The key wasn’t created by an owner or admin |
NOT_FOUND (404) | No kit has that kit_id in your organization, or, for get with no kit_id, your organization has no kit yet |
BRAND_KIT_NAME_TAKEN (409) | Another kit has that name, ignoring case |
PILLAR_IN_USE (409) | The change removes a pillar that a draft or active Positioning applies |
INVALID_BRAND_PILLARS (400) | Over 10 pillars, a field over its limit, or a repeated or reused pillar id |
INVALID_LOGO_URL (400) | logo_url isn’t an absolute URL on a public host |
Related: Brand kits | Marketing skills | App API: brand kits