---
title: "Import Memory Tree"
method: PUT
path: "/api/admin/memory-tree/{user_id}"
tags: ["admin"]
---

# Import Memory Tree

`PUT /api/admin/memory-tree/{user_id}`

## Request

- Base URL: `https://api.omicos.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.omicos.cn/api/admin/memory-tree/{user_id}`
- Auth: none declared

## Path parameters

- `user_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- MemoryTreeImportIn
  - `tree` object, required
  - `method` string
  - `integrated_sessions` string[]
  - `replace` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `d96f8cb593c3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omicos/apis/omicos-server/changes/api/admin/memory-tree/:user_id/put.md)

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc.dev/omicos/apis/omicos-server/revisions/42ce180a8cda?raw)
