---
title: "Patch Branding"
method: PATCH
path: "/tenants/{tenant_id}/branding"
tags: ["tenants"]
---

# Patch Branding

`PATCH /tenants/{tenant_id}/branding`

## Request

- Base URL: `https://api.b2metric.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.b2metric.com/tenants/{tenant_id}/branding`
- Auth: none declared

## Path parameters

- `tenant_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- BrandingUpdate: A field left absent is unchanged; an explicit empty string clears it. `product_names` is replaced whole, not merged: the console sends the full map it renders, and `{}` clears every name. Shape rules (key pattern, value length, entry cap) are enforced in `services.branding`, where the accent colour's are, so both routers answer 400 with the same message. `font_family`, `theme_canvas` and `theme_secondary` follow the same rule as the accent: inputs the customer chose, stored as given (trimmed), derived into tokens by the product. The font FILES are uploaded separately, per weight.
  - `display_name` string, nullable
  - `accent_color` string, nullable
  - `product_names` object, nullable
  - `font_family` string, nullable
  - `theme_canvas` string, nullable
  - `theme_secondary` string, nullable

## Response `200`

Successful Response

- BrandingOut: The editing view — what the console form renders.
  - `display_name` string, nullable
  - `accent_color` string, nullable
  - `has_logo_light` boolean
  - `has_logo_dark` boolean
  - `logo_light` string, nullable
  - `logo_dark` string, nullable
  - `product_names` object
  - `font_family` string, nullable
  - `theme_canvas` string, nullable
  - `theme_secondary` string, nullable
  - `fonts` FontFaceOut[]
    - `weight` integer, required
    - `format` string, required
    - `digest` string, required
    - `size` integer, required
    - `path` string, required
  - `version` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/b2metric/apis/b2metric-license-api.md) - [All operations](https://skmtc.dev/b2metric/apis/b2metric-license-api/llms.txt) - [OpenAPI document](https://skmtc.dev/b2metric/apis/b2metric-license-api/revisions/5c26e11e8b53?raw)
