---
title: "Replace a mind's skills"
description: "Set the mind's skill tags to exactly this list.\n\nA mind may only carry its **owner's** skills; naming anyone else's is a\n404 that says which, rather than a silent drop — a skill the caller\nbelieves they tagged, which never reaches a prompt, produces a confident\nanswer under the wrong instructions."
---

> 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}/skills`

Set the mind's skill tags to exactly this list.

A mind may only carry its **owner's** skills; naming anyone else's is a
404 that says which, rather than a silent drop — a skill the caller
believes they tagged, which never reaches a prompt, produces a confident
answer under the wrong instructions.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

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

## Header parameters

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

## Request body

_Required._

- `skill_ids` (`replace_mind_skills.skill_ids`; array<string>, optional)
  - format `uuid`

## Example request

```json
{
  "skill_ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url 'https://truememory-api.mvstg.com/minds/<mind_id>/skills' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "skill_ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/minds/<mind_id>/skills';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({skill_ids: ['497f6eca-6276-4993-bfeb-53cbbbba6f08']})
};

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>/skills"

payload = { "skill_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"] }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

### 422

Validation Error

#### Example

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

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


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