---
title: "Upload a mind banner"
description: "Upload or replace the mind's banner. Accepts PNG, JPEG, WebP or SVG up\nto 5 MB. Replacing removes the previous file. Returns the updated mind.\n\nGated as a write on the mind: its owner, or someone holding an admin grant.\nA viewer the mind was shared with cannot reskin it for everyone else."
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: AI Gateway API › Minds

`PUT /minds/{mind_id}/banner`

Upload or replace the mind's banner. Accepts PNG, JPEG, WebP or SVG up
to 5 MB. Replacing removes the previous file. Returns the updated mind.

Gated as a write on the mind: its owner, or someone holding an admin grant.
A viewer the mind was shared with cannot reskin it for everyone else.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `mind_id` (`upload_mind_banner.path.mind_id`; string, required)
  - format `uuid`

## Header parameters

- `X-App-Id` (`upload_mind_banner.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`
- `X-On-Behalf-Of` (`upload_mind_banner.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`upload_mind_banner.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`

## Request body

_Required._

- `file` (`upload_mind_banner.file`; string, required)

## Example request

```text
{
  "file": "string"
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url 'https://truememory-api.mvstg.com/minds/<mind_id>/banner' \
  --header 'Authorization: Bearer <token>' \
  --form-string 'file=string'
```

### TypeScript

```typescript
const formData = new FormData();
formData.append('file', 'string');

const url = 'https://truememory-api.mvstg.com/minds/<mind_id>/banner';
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}, body: formData};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-api.mvstg.com/minds/<mind_id>/banner"

files = [
    ("file", (None, "string"))
]
headers = {"Authorization": "Bearer <token>"}

response = requests.put(url, files=files, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "id": "string",
  "owner_type": "user",
  "owner_id": "string",
  "app_id": "string",
  "slug": "string",
  "name": "string",
  "description": "string",
  "emoji": "string",
  "usage_hint": "string",
  "visibility": "private",
  "banner_image_url": "string",
  "skills": [
    {
      "id": "string",
      "key": "string",
      "name": "string"
    }
  ],
  "brain_count": 0,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "skill_ids": [
    "string"
  ]
}
```

- `id` (`upload_mind_banner.response.200.id`; string, required)
- `owner_type` (`upload_mind_banner.response.200.owner_type`; string, required)
  - one of `"user"`, `"org"`
- `owner_id` (`upload_mind_banner.response.200.owner_id`; string, required)
- `slug` (`upload_mind_banner.response.200.slug`; string, required)
- `name` (`upload_mind_banner.response.200.name`; string, required)
- `created_at` (`upload_mind_banner.response.200.created_at`; string, required)
  - format `date-time`
- `updated_at` (`upload_mind_banner.response.200.updated_at`; string, required)
  - format `date-time`
- `skill_ids` (`upload_mind_banner.response.200.skill_ids`; array<string>, required) — Ids of ``skills``, for clients seeding a multi-select.
- `app_id` (`upload_mind_banner.response.200.app_id`; any of, optional)
  - any of: `string`, `null`
- `description` (`upload_mind_banner.response.200.description`; any of, optional)
  - any of: `string`, `null`
- `emoji` (`upload_mind_banner.response.200.emoji`; any of, optional)
  - any of: `string`, `null`
- `usage_hint` (`upload_mind_banner.response.200.usage_hint`; any of, optional)
  - any of: `string`, `null`
- `visibility` (`upload_mind_banner.response.200.visibility`; string, optional)
  - one of `"private"`, `"app"`, `"public"`; default `"private"`
- `banner_image_url` (`upload_mind_banner.response.200.banner_image_url`; any of, optional)
  - any of: `string`, `null`
- `skills` (`upload_mind_banner.response.200.skills`; array<object>, optional)
  - `id` (`upload_mind_banner.response.200.skills.id`; string, required)
  - `key` (`upload_mind_banner.response.200.skills.key`; string, required)
  - `name` (`upload_mind_banner.response.200.skills.name`; string, required)
- `brain_count` (`upload_mind_banner.response.200.brain_count`; integer, optional)
  - default `0`

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`upload_mind_banner.response.422.detail`; array<object>, optional)
  - `loc` (`upload_mind_banner.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`upload_mind_banner.response.422.detail.msg`; string, required)
  - `type` (`upload_mind_banner.response.422.detail.type`; string, required)
  - `input` (`upload_mind_banner.response.422.detail.input`; unknown, optional)
  - `ctx` (`upload_mind_banner.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/minds/banner/index.md
