Restores a file or folder from the recycle bin.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/recyclebin/restore HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request parameters. | |
| drive_id | string | Yes | The drive ID. | 1 |
| file_id | string | Yes | The ID of the file or folder. | 4221bf6e6ab43a255edc4463bffa6f5f5d317401 |
Response parameters
Examples
Sample success responses
JSONformat
{
"domain_id": "bj1",
"drive_id": 1,
"file_id": "4221bf6e6ab43a255edc4463bffa6f5f5d317401",
"async_task_id": "4221bf6e6ab43c255edc4463bf3a6f5f5d317406"
}Error codes
For a list of error codes, visit the Service error codes.
