---
title: "Restore Items"
method: POST
path: "/fs-items/restore"
tags: ["Filesystem Items"]
---

# Restore Items

`POST /fs-items/restore`

## Request

- Base URL: `https://api.aspect.inc`
- URL: `https://api.aspect.inc/fs-items/restore`
- Auth: API key in header `Authorization`

Restore items from the project trash.

## Request body

- FsItemsRestoreRequest: API request schema for restoring filesystem items from the project trash. Each item returns to the directory it was trashed from. If that directory no longer exists or is itself in trash, the item goes to the project root directory. A name already taken at an item's destination returns 409.
  - `project_id` string, uuid, required: Project ID the items belong to
  - `asset_ids` string[], nullable: List of asset IDs to restore from trash
  - `directory_ids` string[], nullable: List of directory IDs to restore from trash
  - `symlink_ids` string[], nullable: List of symlink IDs to restore from trash

## Response `200`

Successful Response

- FsItemsRestoreResponse: API response schema for restoring filesystem items from trash
  - `restored_asset_count` integer, required: Number of assets successfully restored
  - `restored_directory_count` integer, required: Number of directories successfully restored
  - `restored_symlink_count` integer: Number of symlinks successfully restored

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aspect/apis/aspect-api.md) - [All operations](https://skmtc.dev/aspect/apis/aspect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aspect/apis/aspect-api/revisions/28ea5f1adb54?raw)
