---
title: "Assign branding to a contractual entity"
method: POST
path: "/ops/branding/contractual-entities"
tags: ["ops", "ops-branding"]
---

# Assign branding to a contractual entity

`POST /ops/branding/contractual-entities`

## Request

- Base URL: `https://api.topi-staging.eu`
- URL: `https://api.topi-staging.eu/ops/branding/contractual-entities`
- Auth: OAuth 2
  - Authorization code: `/oauth2/authorize`
  - Token URL: `/oauth2/token` scopes: `ops-branding:edit`

Assign a branding config to an external contractual entity, replacing the one it had

## Request body

- AssignBrandingToContractualEntityRequestBody
  - `branding_id` string, required: ID of the branding config to assign
  - `contractual_entity` string, required: Code of the external contractual entity to assign the branding config to

## Response `200`

OK response.

- BrandingForContractualEntity
  - `brand_values` BrandValues
    - `focus_color` string: Outline color around the item the keyboard is on
    - `primary_color` string: Primary color used for buttons, links, and highlights
    - `primary_color_hover` string: Primary color for a button under the mouse pointer
    - `primary_color_muted` string: Primary color muted for checkboxes, radio buttons, tags, banners, and progress bars
    - `primary_color_pressed` string: Primary color while a button is pressed
    - `primary_color_tint` string: Primary color light tint for selected rows and soft backgrounds
    - `text_color_on_primary` string: Label color printed on top of a colored button
    - `text_size_scale` number, double: One number that scales all text larger or smaller together
  - `contractual_entity` string, required: Code of the contractual entity the branding config is linked to
  - `created_at` string, date-time, required
  - `email_logo_url` string: Url for the logo to display in emails, if any
  - `enable_transactional_emails` boolean, required: Whether or not to enable transactional emails
  - `id` string, regexp, required: ID of branding config
  - `info_hub_url` string: Url for the info hub, if any
  - `logo_url` string: Url for the logo to display, if any
  - `name` string, required: Name of the branding config
  - `short_name` string: Short brand identifier (lowercase letters, digits and underscores) used to resolve brand assets
  - `updated_at` string, date-time, required

## Other responses

- `401`: Unauthorized: Unauthorized response.
- `403`: InvalidScopes: Forbidden response.
- `404`: NotFound: Not Found response.

## Changes

- **2026-10-27** `ac6979514123`: 1 info
  - api operation id `branding.assignBrandingToContractualEntity` removed and replaced with `branding#assignBrandingToContractualEntity`
- **2026-10-26** `7ff7ee94b30e`: 2 info
  - api operation id `branding#assignBrandingToContractualEntity` removed and replaced with `branding.assignBrandingToContractualEntity`
  - api tag `ops-branding` added
- **2026-10-09** `8784db4f3f02`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/topi/apis/topi-public-api/changes/ops/branding/contractual-entities/post.md)

---

[API](https://skmtc.dev/topi/apis/topi-public-api.md) - [All operations](https://skmtc.dev/topi/apis/topi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/topi/apis/topi-public-api/revisions/d279d1eb37dd?raw)
