Trash Folder
POST
https://api.konpro.ai/v1/folders/{folder_id}/trashMove an existing folder to the trash. This action marks the folder as trashed without permanently deleting it.
Request History
Log in to see full request history
| TIME | STATUS | USER AGENT |
|---|---|---|
| Make a request to see history. | ||
0 Requests This Month
cURL Request
shell
curl --request POST \
--url https://api.konpro.ai/v1/folders/<folder_id>/trash \
--header 'accept: application/json' \
--header 'x-api-key: <your-api-key>'Path Parameter
| Parameter | Type | Description |
|---|---|---|
| folder_id | string | Unique identifier of the folder to trash (required) |
Response
Response Structure
| Field | Type | Description |
|---|---|---|
| folder_id | string | Unique identifier of the trashed folder |
| status | string | Status of the folder ("trashed") |
| trashed_at | datetime | Timestamp when folder was trashed |
Sample Response
json
{
"folder_id": "folder_789",
"status": "trashed",
"trashed_at": "2024-01-15T12:45:00Z"
}Notes
- Requires API authentication.
- Folder ID must exist and be accessible.
- Trashed folders are not permanently deleted.
- Trashed folders can be restored using the restore endpoint.
- Folder contents are also moved to trash.
- This action cannot be undone without using restore.
- Refer to Error Responses for error information.
Example Usage
Shell
curl --request POST \
--url https://api.konpro.ai/v1/folders/<folder_id>/trash \
--header 'accept: application/json' \
--header 'x-api-key: <your-api-key>'LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Success
401 - Unauthorized
LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Success
401 - Unauthorized