Update a brand item
Rename a color, font or image in the brand kit, or set its tags.
curl -X PATCH https://api.muzekit.com/v1/brand/ast_dQC3Z8RgqAH \
-H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Ocean", "tags": ["primary", "web"] }'const res = await fetch("https://api.muzekit.com/v1/brand/ast_dQC3Z8RgqAH", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ name: "Ocean", tags: ["primary", "web"] }),
});
const item = await res.json();import os
import requests
item = requests.patch(
"https://api.muzekit.com/v1/brand/ast_dQC3Z8RgqAH",
headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
json={"name": "Ocean", "tags": ["primary", "web"]},
).json()The id is an item's from Get the brand kit. An id that isn't in the brand kit answers 404 asset_not_found.
Body
namestringThe item's new name, 1 to 200 characters.
tagsstring[]The item's tags, up to 30 of up to 50 characters each. Replaces the list; [] clears it.
Send name, tags or both; an empty body answers 400. A color keeps its value: to change the color itself, add the new one with Add a brand color and remove the old one. Renaming a font doesn't change its family, so designs that use the font keep it. The brand kit is the editor's, so Test and Live keys change the same one.
Examples
Tag the colors your templates should use
Tags are yours to use: for example, tag the colors an AI agent may pick for headlines, and read them back from the brand kit.
for id in ast_dQC3Z8RgqAH ast_Pq8wN2xTr5m; do
curl -s -X PATCH "https://api.muzekit.com/v1/brand/$id" \
-H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{ "tags": ["headline"] }' > /dev/null
donefor (const id of ["ast_dQC3Z8RgqAH", "ast_Pq8wN2xTr5m"]) {
await fetch(`https://api.muzekit.com/v1/brand/${id}`, {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ tags: ["headline"] }),
});
}import os
import requests
for item_id in ["ast_dQC3Z8RgqAH", "ast_Pq8wN2xTr5m"]:
requests.patch(
f"https://api.muzekit.com/v1/brand/{item_id}",
headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
json={"tags": ["headline"]},
)Give an uploaded logo a clear name
Uploads keep their file name, such as IMG_2041.png. Rename the item so your team and your users find it in the editor.
curl -X PATCH https://api.muzekit.com/v1/brand/ast_Hn4cW2rTq8z \
-H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Logo (dark)" }'await fetch("https://api.muzekit.com/v1/brand/ast_Hn4cW2rTq8z", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ name: "Logo (dark)" }),
});import os
import requests
requests.patch(
"https://api.muzekit.com/v1/brand/ast_Hn4cW2rTq8z",
headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
json={"name": "Logo (dark)"},
)Response
The item, with every asset field.
{
"object": "asset",
"id": "ast_dQC3Z8RgqAH",
"kind": "color",
"name": "Ocean",
"tags": ["primary", "web"],
"url": null,
"value": "#0070F7",
"type": null,
"size": null,
"width": null,
"height": null,
"family": null,
"created_at": "2026-10-17T02:10:00.000Z"
}