---
title: "Restart Onprem Backend"
method: POST
path: "/api/ui/onprem/restart"
tags: ["Web UI"]
---

# Restart Onprem Backend

`POST /api/ui/onprem/restart`

## Request

- The document declares no server URL.
- Auth: none declared

Bounce the on-prem moorcheh stack so it re-reads ``~/.moorcheh/config.json``.

``moorcheh down`` + ``moorcheh up`` (with embedding flags recovered from
state.json / config.json). Waits up to ~6 minutes total (5min for
``up``, 60s for ``/health``).

A module-level async lock prevents concurrent restart requests from
interleaving ``down``/``up`` calls against the same Moorcheh stack,
which can leave the backend in an inconsistent state.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) - [All operations](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) - [OpenAPI document](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/revisions/ef842776283e?raw)
