Moves a file or folder to the recycle bin.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/recyclebin/trash 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. | 4221bf6e6ab43c255edc4463bf3a6f5f5d317406 |
Response parameters
Examples
Sample success responses
JSONformat
{
"domain_id": "bj1",
"drive_id": 1,
"file_id": "4221bf6e6ab43c255edc4463bf3a6f5f5d317406",
"async_task_id": "13ebd3a24dba4166b1527add676ef2866051b4d5dele16"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
