---
search:
  tags:
    - Images
    - PUT
seo:
  description: >-
    Admin only. Points the organisation settings at a logo that was already…
    Reference for the PUT /api/v1/images/branding/logo endpoint in the
    PharmaFlow API.
sidebar:
  label: Set the organisation logo
  badge: PUT
title: Set the organisation logo
type: openapi-operation
---
Admin only. Points the organisation settings at a logo that was already uploaded to storage. The key sits under the branding prefix at 2 MB or less, and a missing settings row is created.

`PUT /api/v1/images/branding/logo`

**Request body** (`application/json`, required)

- `image_key` (string, required)

Request body example:

```json
{
  "image_key": "string"
}
```

**Responses**

- `200` — The logo key and its public URL
- `400` — The image key is not under the branding prefix, or the upload is missing or larger than 2 MB
- `401` — Not authenticated
- `403` — Caller is not an admin
- `500` — Image storage is unavailable

Response example, 200:

```json
{
  "logo_key": "string",
  "logo_url": "string"
}
```
