Get Team Folder Trashed Files

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

This API fetches all the files in a team folder's Trash.

Endpoints

OAuth Scope

WorkDrive.teamfolders.admin.READCopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request GET \
  --url https://www.zohoapis.com/workdrive/api/v1/teamfolders/{teamfolder_id}/trashedfiles \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Path Parameters

teamfolder_idstring(Required)

The unique ID of a team folder.

Query Parameters

Note:

Query parameter name should be URL encoded with UTF-8 Charset. For more info, refer here

filter[type]string(Optional)

To filter by resource type.

Eg. filter[type]=documents

For list of filter type, see File filter in Filters page, refer here

Allowed Values :
Show Values
allCopied!
allfilesCopied!
documentsCopied!
spreadsheetsCopied!
presentationsCopied!
pdfCopied!
audioCopied!
videoCopied!
imagesCopied!
folderCopied!
mydraftsCopied!
documents_nativeCopied!
spreadsheets_nativeCopied!
presentations_nativeCopied!
documents_non_nativeCopied!
spreadsheets_non_nativeCopied!
presentations_non_nativeCopied!
Copied!Copy all as JSON Array
page[limit]string(Optional)

Limit indicates the number of items to be listed.

(The maximum limit is 50).

For More Details about pagination, refer here

page[offset]string(Optional)

Offset indicates from where the listing should start.

sortstring(Optional)

Sorting can be done with these fields:


  • name
  • kind
  • shared_time
  • last_modified
  • created_time

To sort in descending order, prefix the field value with a hyphen (-).

Eg. sort=-name sorts results by name in descending order.

Allowed Values :
Show Values
nameCopied!
kindCopied!
shared_timeCopied!
last_modifiedCopied!
created_timeCopied!
-nameCopied!
-kindCopied!
-shared_timeCopied!
-last_modifiedCopied!
-created_timeCopied!
Copied!Copy all as JSON Array

Response Example

R221

U001

R008

R004

F000

200
200
400
401
403
404
500
Copied!
  {
    "data": [
      {
        "id": "ly9zm390af86b5a90443494b9136d914309f4",
        "type": "files",
        "attributes": {
          "modified_by_zuid": "747938014",
          "is_locked": false,
          "conv_engine_type": 1,
          "is_fillable_resource": false,
          "is_published": false,
          "destination_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
          "storage_info": {
            "size": "92.0 KB",
            "storage_used": "92.0 KB",
            "files_count": 0,
            "folders_count": 0,
            "size_in_bytes": 94427,
            "storage_used_in_bytes": 94427
          },
          "type": "image",
          "created_time_i18": "Apr 12, 11:54 PM",
          "modified_time_in_millisecond": 1618252288420,
          "opened_time": "Apr 12, 11:54 PM",
          "status_change_time": "Apr 13, 12:01 AM",
          "download_url": "https://download-accl.zoho.com/v1/workdrive/download/ly9zm390af86b5a90443494b9136d914309f4",
          "comment_badge_count": 0,
          "is_app_associated": false,
          "created_time": "Apr 12, 11:54 PM",
          "lock_status": 2,
          "is_folder": false,
          "resource_type": 2501,
          "is_email_in_upload": false,
          "display_attr_name": "Screenshot from 2021-04-09 11-30-24.png",
          "created_by": "Zylker Creation",
          "display_html_name": "Screenshot from 2021-04-09 11-30-24.png",
          "labels": [],
          "parent_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
          "name": "Screenshot from 2021-04-09 11-30-24.png",
          "status_change_time_in_millisecond": 1618252288420,
          "permalink": "https://www.zohoapis.com/workdrive/file/ly9zm390af86b5a90443494b9136d914309f4",
          "favorite": false,
          "new_badge_count": 0,
          "status": 51,
          "modified_time_i18": "Apr 13, 12:01 AM",
          "opened_time_i18": "Apr 12, 11:54 PM",
          "extn": "png",
          "shortcut_link": "",
          "status_change_time_i18": "Apr 13, 12:01 AM",
          "description": "",
          "uploaded_time_in_millisecond": 1618251883433,
          "thumbnail_url": "https://previewengine-accl.zoho.com/thumbnail/WD/ly9zm390af86b5a90443494b9136d914309f4",
          "title": "",
          "modified_time": "Apr 13, 12:01 AM",
          "library_id": "ly9zm0170fb40015f4e2297a144e2b68cfa68",
          "icon_class": "img",
          "created_time_in_millisecond": 1618251883431,
          "owner": "747937818",
          "creator": "747938014",
          "capabilities": {
            "can_read": false,
            "can_share": false,
            "can_remove_share": false,
            "can_delete": true,
            "can_edit": false,
            "can_upload_files": false,
            "can_trash": false,
            "can_rename": false,
            "can_restore": true,
            "can_copy": false,
            "can_move": false,
            "can_zip": false,
            "can_download": false,
            "can_emailattach": false,
            "can_publish": false,
            "can_create_task": false,
            "can_share_support": false,
            "can_label": true,
            "can_checkout": false,
            "can_cancel_checkout": false,
            "can_discard_checkout": false,
            "can_checkin": false,
            "can_read_comment": false,
            "can_create_comment": false,
            "can_trash_files": false
          },
          "uploaded_time_i18": "Apr 12, 11:54 PM",
          "is_external_upload": false,
          "watch_preference": {
            "watch": false,
            "notifyemail": false,
            "notifybell": false
          },
          "opened_time_in_millisecond": 1618251883431,
          "edit_badge_count": 0,
          "share_data": [],
          "uploaded_time": "Apr 12, 11:54 PM",
          "has_folders": false,
          "service_type": "upload",
          "display_url_name": "Screenshot+from+2021-04-09+11-30-24.png",
          "is_unread": false,
          "modified_by": "Zylker Creation",
          "embed_props": {}
        },
        "relationships": {
          "folders": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/folders",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/folders"
            }
          },
          "comments": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/comments",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/comments"
            }
          },
          "previewinfo": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/previewinfo",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/previewinfo"
            }
          },
          "unzip": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/unzip",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/unzip"
            }
          },
          "publiclink": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/publiclink",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/publiclink"
            }
          },
          "resourceproperty": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/resourceproperty",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/resourceproperty"
            }
          },
          "parentfolders": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/parentfolders",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/parentfolders"
            }
          },
          "shortcut": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/shortcut",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/shortcut"
            }
          },
          "importfile": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/importfile",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/importfile"
            }
          },
          "versions": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/versions",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/versions"
            }
          },
          "supportshare": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/supportshare",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/supportshare"
            }
          },
          "permissions": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/permissions",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/permissions"
            }
          },
          "timeline": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/timeline",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/timeline"
            }
          },
          "files": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/files",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/files"
            }
          },
          "saveastemplate": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/saveastemplate",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/saveastemplate"
            }
          },
          "links": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/links",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/links"
            }
          },
          "copy": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/copy",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/copy"
            }
          },
          "previewzip": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/previewzip",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/previewzip"
            }
          },
          "tasks": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/tasks",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/tasks"
            }
          },
          "breadcrumbs": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/breadcrumbs",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/breadcrumbs"
            }
          },
          "entity": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/entity",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/entity"
            }
          },
          "custommetadata": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/custommetadata",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/custommetadata"
            }
          },
          "statistics": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/statistics",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/statistics"
            }
          },
          "appdata": {
            "links": {
              "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/relationships/appdata",
              "related": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4/appdata"
            }
          }
        },
        "links": {
          "self": "https://www.zohoapis.com/workdrive/files/ly9zm390af86b5a90443494b9136d914309f4"
        }
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "R221",
        "title": "Invalid inputs"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "U001",
        "title": "User not logged in. Please Log in"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "R008",
        "title": "Unauthorized access"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "R004",
        "title": "Invalid resourceId passed. Please use a valid resourceId"
      }
    ]
  }
                
  {
    "errors": [
      {
        "id": "F000",
        "title": "General Exception"
      }
    ]
  }
                
Show full