# Update a brand item

> Rename a color, font or image in the brand kit, or set its tags.

<Endpoint method="PATCH" path="/v1/brand/{id}" />

<CodeTabs>

```bash tab="cURL"
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"] }'
```

```javascript tab="Node"
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();
```

```python tab="Python"
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()
```

</CodeTabs>

The id is an item's from [Get the brand kit](/docs/api-reference/brand-get). An id that isn't in the brand kit answers `404 asset_not_found`.

## Body

<ParamTable params={[
  { name: "name", type: "string", description: "The item's new name, 1 to 200 characters." },
  { name: "tags", type: "string[]", description: "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](/docs/api-reference/brand-colors-add) 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.

<CodeTabs>

```bash tab="cURL"
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
done
```

```javascript tab="Node"
for (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"] }),
  });
}
```

```python tab="Python"
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"]},
    )
```

</CodeTabs>

### 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.

<CodeTabs>

```bash tab="cURL"
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)" }'
```

```javascript tab="Node"
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)" }),
});
```

```python tab="Python"
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)"},
)
```

</CodeTabs>

## Response

The item, with every [asset](/docs/api-reference/assets-list) field.

```json
{
  "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"
}
```
