---
title: "Add recent file"
method: POST
path: "/host/file_manager/recent"
tags: ["SSH"]
---

# Add recent file

`POST /host/file_manager/recent`

Adds a file to the list of recent files for a host.

## Request body

- object
  - `hostId` integer
  - `path` string
  - `name` string

## Response `200`

Recent file added.

## Other responses

- `400` — Invalid data.
- `500` — Failed to add recent file.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
