> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lettbestilt.no/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lettbestilt.no/_mcp/server.

# Upload your light logo

POST https://www.lettbestilt.no/api/v1/partner/brand/logo-light
Content-Type: multipart/form-data

**Partner key only.** `multipart/form-data` with the field `file`: PNG, JPEG or WebP (read from the file's bytes), at most 2 MB. A light version of your logo for the dark sidebar of your restaurant owners' dashboard; without one, the dashboard shows your normal logo inverted. The file is stored at LettBestilt and becomes `logoLightUrl` in the same call. The previous light logo file is removed only if it was itself uploaded here by you (through the API or LettBestilt MCP), and never while the normal logo uses the same file.

An optional text field `expectedUpdatedAt` gives `409 CHANGED` instead of overwriting a change made in between. `Content-Length` is required. At most 10 uploads per hour per partner, shared by both logos. The key must be created by an owner or administrator (`403 KEY_ROLE_FORBIDDEN`).

Reference: https://docs.lettbestilt.no/api-reference/partner/upload-partner-light-logo

## Authentication

- `Authorization` header (bearer token, required) — The partner key (`lbp_test_…` or `lbp_live_…`), sent as `Authorization: Bearer lbp_…` and created in LettBestilt Partner under **Partner key**. It belongs to the whole partner, not to a restaurant, and only works against `/api/v1/partner`. Server to server only: a request with an `Origin` header is rejected with `403 FORBIDDEN`, and the key must never be in a browser. A TEST key sees and creates only sandboxes; LIVE keys work once LettBestilt Partner is open. A suspended or archived partner, a revoked key and a restaurant key (`lbs_…`) here give `401 UNAUTHORIZED`; an expired key gives `401 KEY_EXPIRED`.

## Request

### Body (multipart/form-data)

This endpoint expects a multipart form containing a file.

- `file` (file, required)
- `expectedUpdatedAt` (datetime, optional) — Optional text field: `updatedAt` from `GET /brand`. If the partner has changed since, `409 CHANGED`, and the file is not stored.

## Response

### 200

The brand with the new light logo.

- `data` (PartnerBrand, required)

## Errors

### 401 Unauthorized Error

`UNAUTHORIZED`: the partner key is missing, invalid or revoked, or the partner is suspended or archived. `KEY_EXPIRED`: the key is past its expiry date.

- `error` (ErrorBody, required)

### 403 Forbidden Error

`KEY_ROLE_FORBIDDEN`: the person who created the key is no longer an owner or administrator in the partner team (`error.details.capability` is `brand.manage`). Or as for reading: `FORBIDDEN` (`Origin` header), `PARTNER_AGREEMENT_REQUIRED` or `PARTNER_NOT_APPROVED`.

- `error` (ErrorBody, required)

### 409 Conflict Error

`CHANGED`: the partner changed since `expectedUpdatedAt`, or at the same time. The file is not stored.

- `error` (ErrorBody, required)

### 411 Length Required Error

`LENGTH_REQUIRED`: the request has no `Content-Length`. The size is checked before the body is read.

- `error` (ErrorBody, required)

### 413 Content Too Large Error

`FILE_TOO_LARGE`: the file is over 2 MB, or `Content-Length` is over 2 MB plus the multipart framing.

- `error` (ErrorBody, required)

### 422 Unprocessable Entity Error

`FILE_UNSUPPORTED`: not PNG, JPEG or WebP. `VALIDATION_FAILED`: not multipart, no `file`, or an invalid `expectedUpdatedAt`.

- `error` (ErrorBody, required)

### 429 Too Many Requests Error

`RATE_LIMITED`: 10 uploads per hour per partner, shared by the logo and the light logo, on top of the partner's bucket of 30 changes per minute.

- `error` (ErrorBody, required)

### 502 Bad Gateway Error

`UPLOAD_FAILED`: the file could not be stored right now. Try again.

- `error` (ErrorBody, required)

## Types

### PartnerBrand

- `logoUrl` (string, required, nullable) — Only a file uploaded to LettBestilt (`POST /api/v1/partner/brand/logo`); other addresses give `422 LOGO_NOT_ALLOWED`. The stored value is accepted. `null` removes the logo.
- `logoLightUrl` (string, required, nullable) — Light logo for the dark sidebar of the owners' dashboard. Only a file uploaded to LettBestilt (`POST /api/v1/partner/brand/logo-light`); other addresses give `422 LOGO_NOT_ALLOWED`. The stored value is accepted. `null` removes it, and the normal logo is then shown inverted.
- `themeSidebarColor` (PartnerBrandThemeSidebarColor, required, nullable) — The sidebar colour of the owners' dashboard, hex. Must have a contrast of at least 4.5:1 against the light sidebar text (`422 VALIDATION_FAILED` otherwise). Stored as `#rrggbb`. A new colour needs white label (`403 WHITE_LABEL_REQUIRED`); `null` or an empty string gives LettBestilt's default and is always allowed.
- `themeActionColor` (PartnerBrandThemeActionColor, required, nullable) — The main colour (buttons and links) of the owners' dashboard, hex. Must have a contrast of at least 4.5:1 against the light background (`422 VALIDATION_FAILED` otherwise). Stored as `#rrggbb`. A new colour needs white label (`403 WHITE_LABEL_REQUIRED`); `null` or an empty string gives the default and is always allowed.
- `themeFont` (enum, required) — The font of the owners' dashboard: `dm-sans` (DM Sans), `plus-jakarta-sans` (Plus Jakarta Sans), `nunito-sans` (Nunito Sans), `work-sans` (Work Sans), `source-sans-3` (Source Sans 3), `figtree` (Figtree). A new font needs white label (`403 WHITE_LABEL_REQUIRED`); `null` or an empty string gives the default and is always allowed.
  - Allowed values: `dm-sans`, `plus-jakarta-sans`, `nunito-sans`, `work-sans`, `source-sans-3`, `figtree`, ``
- `supportEmail` (string, required, nullable) — The support email address restaurant owners see (white label), and the Reply-To of your news.
- `supportPhone` (string, required, nullable)
- `websiteUrl` (string, required, nullable) — https only.
- `showPoweredBy` (boolean, required) — Shows "Drevet av LettBestilt" ("Powered by LettBestilt"). `false` needs white label (`403 WHITE_LABEL_REQUIRED`).
- `whiteLabelEnabled` (boolean, required) — Set by LettBestilt in the partner agreement. Read only.
- `updatedAt` (datetime, required) — When the partner last changed (brand, profile or sender domain). Send it as `expectedUpdatedAt`.

### ErrorBody

- `code` (enum, required) — A machine-readable error code.
  - Allowed values: `MISSING_SLUG`, `MISSING_TOKEN`, `INVALID_JSON`, `INVALID_SUCCESS_URL`, `INVALID_CANCEL_URL`, `VALIDATION_FAILED`, `RESTAURANT_NOT_FOUND`, `ORDER_NOT_FOUND`, `RATE_LIMITED`, `BAD_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `INSUFFICIENT_SCOPE`, `KEY_EXPIRED`, `POPUP_NOT_AVAILABLE`, `PRICE_CHANGED`, `PAYMENT_INCOMPLETE`, `PAYMENT_PENDING`, `PAYMENT_PROVIDER_INVALID`, `FULFILLMENT_NOT_ALLOWED`, `IDEMPOTENCY_CONFLICT`, `DINE_IN_DISABLED`, `PARTY_TOO_LARGE`, `TOO_EARLY`, `NO_TABLE`, `INVALID_PARTY_SIZE`, `INTERNAL_ERROR`, `PARTNER_AGREEMENT_REQUIRED`, `IDEMPOTENCY_KEY_REQUIRED`, `SLUG_TAKEN`, `SANDBOX_LIMIT`, `RETENTION`, `RESTAURANT_ARCHIVED`, `KEY_NOT_FOUND`, `KEY_IN_USE`, `WEBHOOK_NOT_FOUND`, `WEBHOOK_LIMIT`, `CHANGED`, `PDF_TOO_LARGE`, `PDF_INVALID`, `PDF_PASSWORD`, `PDF_TOO_MANY_PAGES`, `PDF_NO_TEXT`, `PDF_PARSE_TIMEOUT`, `MENU_IMPORT_EMPTY`, `FILE_UNSUPPORTED`, `IMAGE_HEIC`, `IMAGE_INVALID`, `IMAGE_DIMENSIONS`, `MENU_IMPORT_UNAVAILABLE`, `MENU_IMPORT_AI_LIMIT`, `MENU_IMPORT_TOO_BIG`, `MENU_IMPORT_NOT_FOUND`, `MENU_IMPORT_CLOSED`, `PARTNER_NOT_APPROVED`, `PARTNER_DATA_LOCKED`, `DOMAIN_NOT_FOUND`, `DOMAIN_TAKEN`, `DOMAIN_LIMIT`, `DOMAIN_MANAGED`, `DOMAIN_NOT_VERIFIED`, `OWNER_EXISTS`, `OWNER_EMAIL_NOT_ALLOWED`, `OWNER_INVITE_NOT_FOUND`, `SANDBOX_NOT_SUPPORTED`, `INVITE_SEND_FAILED`, `GO_LIVE_NOT_REQUIRED`, `GO_LIVE_NOT_READY`, `GO_LIVE_CHECKS_FAILED`, `GO_LIVE_ALREADY_REQUESTED`, `GO_LIVE_ALREADY_APPROVED`, `GO_LIVE_NOTHING_TO_WITHDRAW`, `DEMO_RESTAURANT`, `LEGAL_LOCKED`, `HOURS_OVERRIDE_NOT_FOUND`, `HOURS_OVERRIDE_LIMIT`, `DELIVERY_ZONE_NOT_FOUND`, `DELIVERY_ZONE_LIMIT`, `MENU_NOT_FOUND`, `MENU_IS_DEFAULT`, `CATEGORY_NOT_FOUND`, `PRODUCT_NOT_FOUND`, `ADDON_GROUP_NOT_FOUND`, `CATEGORY_NOT_EMPTY`, `CATEGORY_LIMIT`, `PRODUCT_LIMIT`, `ADDON_GROUP_LIMIT`, `KEY_ROLE_FORBIDDEN`, `WHITE_LABEL_REQUIRED`, `LOGO_NOT_ALLOWED`, `FILE_TOO_LARGE`, `UPLOAD_FAILED`, `PARTNER_ARCHIVED`, `PARTNER_NEWS_FORBIDDEN`, `NEWS_NOT_FOUND`, `NOT_DRAFT`, `NOT_PUBLISHED`, `NOT_SCHEDULED`, `NOT_CLAIMABLE`, `NO_RECIPIENTS`, `IMAGE_NOT_ALLOWED`, `SENDER_DOMAIN_ALREADY_SET`, `SENDER_DOMAIN_NOT_SET`, `DOMAIN_EXISTS`, `SENDER_DOMAIN_REJECTED`, `EMAIL_SERVICE_UNAVAILABLE`, `HUMAN_REQUIRED`, `LENGTH_REQUIRED`, `PAYLOAD_TOO_LARGE`
- `message` (string, required) — A human-readable explanation, often in Norwegian. For business rules it is usually suitable to show the customer.
- `requestId` (string, required) — The same value as the `X-Request-Id` response header. Search for it in the API log in LettBestilt Partner, and include it when you contact LettBestilt.
- `details` (any, optional) — Extra data for some codes, for example `issues` for `VALIDATION_FAILED`, the totals for `PRICE_CHANGED` or `requiredScope` for `INSUFFICIENT_SCOPE`.

### PartnerBrandThemeSidebarColor

The sidebar colour of the owners' dashboard, hex. Must have a contrast of at least 4.5:1 against the light sidebar text (`422 VALIDATION_FAILED` otherwise). Stored as `#rrggbb`. A new colour needs white label (`403 WHITE_LABEL_REQUIRED`); `null` or an empty string gives LettBestilt's default and is always allowed.

### PartnerBrandThemeActionColor

The main colour (buttons and links) of the owners' dashboard, hex. Must have a contrast of at least 4.5:1 against the light background (`422 VALIDATION_FAILED` otherwise). Stored as `#rrggbb`. A new colour needs white label (`403 WHITE_LABEL_REQUIRED`); `null` or an empty string gives the default and is always allowed.

## Examples

**Request**

```json
{
  "file": "<file: string>"
}
```

**Response**

```json
{
  "data": {
    "logoUrl": "string",
    "logoLightUrl": "string",
    "themeSidebarColor": "#1f2a44",
    "themeActionColor": "#1d3d48",
    "themeFont": "dm-sans",
    "supportEmail": "string",
    "supportPhone": "string",
    "websiteUrl": "string",
    "showPoweredBy": true,
    "whiteLabelEnabled": true,
    "updatedAt": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://www.lettbestilt.no/api/v1/partner/brand/logo-light"

files = { "file": "open('string', 'rb')" }
payload = { "expectedUpdatedAt":  }
headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, data=payload, files=files, headers=headers)

print(response.json())
```

```javascript
const url = 'https://www.lettbestilt.no/api/v1/partner/brand/logo-light';
const form = new FormData();
form.append('expectedUpdatedAt', '');
form.append('file', 'string');

const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://www.lettbestilt.no/api/v1/partner/brand/logo-light"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"expectedUpdatedAt\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://www.lettbestilt.no/api/v1/partner/brand/logo-light")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"expectedUpdatedAt\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://www.lettbestilt.no/api/v1/partner/brand/logo-light")
  .header("Authorization", "Bearer <token>")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"expectedUpdatedAt\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://www.lettbestilt.no/api/v1/partner/brand/logo-light', [
  'multipart' => [
    [
        'name' => 'file',
        'filename' => 'string',
        'contents' => null
    ]
  ]
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://www.lettbestilt.no/api/v1/partner/brand/logo-light");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"expectedUpdatedAt\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]
let parameters = [
  [
    "name": "expectedUpdatedAt",
    "value": 
  ],
  [
    "name": "file",
    "fileName": "string"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "https://www.lettbestilt.no/api/v1/partner/brand/logo-light")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```