---
title: "Save a personal memory document"
---

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

# Save a personal memory document

Path: CloudRaker Workspace API › My assistant

`PUT /me/assistant/memory/{name}`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `name` (`updateMyAssistantMemory.path.name`; string, required)
  - one of `"SOUL.md"`, `"MEMORY.md"`

## Request body

_Required._

- `content` (`updateMyAssistantMemory.content`; string, required)
  - maxLength 16000
- `version` (`updateMyAssistantMemory.version`; integer, required)
  - min 0; max 9007199254740991

## Example request

```json
{
  "content": "string",
  "version": 9007199254740991
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url https://api.cloudraker.com/me/assistant/memory/SOUL.md \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "string",
  "version": 9007199254740991
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/memory/SOUL.md';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({content: 'string', version: 9007199254740991})
};

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

### Python

```python
import requests

url = "https://api.cloudraker.com/me/assistant/memory/SOUL.md"

payload = {
    "content": "string",
    "version": 9007199254740991
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Save a personal memory document

#### Example

```json
{
  "data": {
    "content": "string",
    "version": 9007199254740991,
    "name": "SOUL.md"
  }
}
```

- `data` (`updateMyAssistantMemory.response.200.data`; object, required)
  - `content` (`updateMyAssistantMemory.response.200.data.content`; string, required)
    - maxLength 16000
  - `version` (`updateMyAssistantMemory.response.200.data.version`; integer, required)
    - min 0; max 9007199254740991
  - `name` (`updateMyAssistantMemory.response.200.data.name`; string, required)
    - one of `"SOUL.md"`, `"MEMORY.md"`

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`updateMyAssistantMemory.response.400.success`; boolean, required)
  - one of `false`
- `error` (`updateMyAssistantMemory.response.400.error`; array<unknown>, required)
- `data` (`updateMyAssistantMemory.response.400.data`; unknown, required)

### 403

An active personal account is required.

### 404

The resource is unavailable to this user.

### 409

`memory_conflict`: the memory changed; reload it before saving.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`updateMyAssistantMemory.response.409.error`; string, required) — The sentence a human reads.
- `error_code` (`updateMyAssistantMemory.response.409.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`updateMyAssistantMemory.response.409.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`updateMyAssistantMemory.response.409.issues.path`; string, required)
  - `code` (`updateMyAssistantMemory.response.409.issues.code`; string, required)
  - `message` (`updateMyAssistantMemory.response.409.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/my-assistant/update-my-assistant-memory/index.md
