---
title: 恢复文件（从回收站）
description: POST /nd/api/file/restore_file：恢复文件（从回收站） 接口说明，包含路径、方法、参数和返回信息。
slug: api-post-nd-api-file-restore-file
lang: zh
category: 文件 API
category_order: 8
order: 116
api_method: POST
api_path: /nd/api/file/restore_file
api_label: 恢复文件（从回收站）
keywords:
  - API
  - 恢复文件（从回收站）
  - /nd/api/file/restore_file
---

# 恢复文件（从回收站）

| 属性 | 值 |
| --- | --- |
| HTTP 方法 | `POST` |
| 接口路径 | `/nd/api/file/restore_file` |
| 所属分类 | 文件 API |

## 接口说明

接口路径：`/nd/api/file/restore_file`

HTTP 方法：`POST`


**HTTP 方法：** `POST`

#### POST 请求体参数

参数名 Comment(说明)
file_ids[] 目标文件 id 数组 string[]
restoreAll 不填写 file_ids, restoreAll 为 true，时恢复回收站中所有文件，boolean
#### 返回信息如下

## 调用说明

- 调用前需完成 [获取 token](api-post-api-token-do.md) 或相应免登录认证，并在请求 Header 中携带 `Authorization: Bearer <access_token>`。
- 参数和返回字段如因部署版本存在差异，应以实际私有云 API 文档和联调结果为准。
- 所属分类：文件 API。
