---
title: "Restore session"
method: POST
path: "/api/v1/sessions/{session_id}/restore"
tags: ["sessions"]
---

# Restore session

`POST /api/v1/sessions/{session_id}/restore`

Unarchive (restore) a soft-deleted session. Returns success when restored, 404 if not found, 409 if already active.

## Path parameters

- `session_id` string, required — Identifier of the session to restore.

## Response `200`

Successful Response

- SessionRestoreResponse — Result payload after restoring an archived session.
  - `ok` boolean — Whether the session was restored successfully.

## Other responses

- `401` — Authentication is required or the provided token is invalid.
- `403` — The caller does not have permission to access this resource.
- `404` — Session not found.
- `409` — Session is already active.
- `422` — Validation Error
- `503` — Session services are unavailable because server startup is incomplete.

## Changes

- **2026-04-23** `03185e8a568f` — 1 info
  - endpoint added
- **2026-03-19** `78507b29ed8f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/qredence/apis/fleet-rlm/changes/api/v1/sessions/:session_id/restore/post.md)

---

[API](https://skmtc.dev/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.dev/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc.dev/qredence/apis/fleet-rlm/revisions/d82643b26c96?raw)
