Get the "Trash" section
GET /api/2.0/files/@trash
Request
Returns the detailed list of files and folders located in the "Trash" section.
Authorization
An API key is a token that you provide when making API calls. Include the token in a cookie parameter called asc_auth_key
.
Example: asc_auth_key=864FE52C-1C1C-469F-9308-51DAFEFE7436
.
Headers
- Accept
enum of string
Can be one of:
application/json
,text/json
,text/plain
.
Query
- userIdOrGroupId
string
uuid - filterType
one of
- .
enum of string
[None - None, FilesOnly - Files only, FoldersOnly - Folders only, DocumentsOnly - Documents only, PresentationsOnly - Presentations only, SpreadsheetsOnly - Spreadsheets only, ImagesOnly - Images only, ByUser - By user, ByDepartment - By department, ArchiveOnly - Archive only, ByExtension - By extension, MediaOnly - Media only, FillingFormsRooms - Filling forms rooms, EditingRooms - Editing rooms, ReviewRooms - Review rooms, ReadOnlyRooms - Read only rooms, CustomRooms - Custom rooms, PublicRooms - Public rooms, FormRooms - Form rooms, Pdf - Pdf, PdfForm - Pdf form]
Can be one of:
None
,FilesOnly
,FoldersOnly
,DocumentsOnly
,PresentationsOnly
,SpreadsheetsOnly
,ImagesOnly
,ByUser
,ByDepartment
,ArchiveOnly
,ByExtension
,MediaOnly
,FillingFormsRooms
,EditingRooms
,ReviewRooms
,ReadOnlyRooms
,CustomRooms
,PublicRooms
,FormRooms
,Pdf
,PdfForm
.- .
enum of integer
[0 - None, 1 - Files only, 2 - Folders only, 3 - Documents only, 4 - Presentations only, 5 - Spreadsheets only, 7 - Images only, 8 - By user, 9 - By department, 10 - Archive only, 11 - By extension, 12 - Media only, 13 - Filling forms rooms, 14 - Editing rooms, 15 - Review rooms, 16 - Read only rooms, 17 - Custom rooms, 20 - Public rooms, 21 - Form rooms, 22 - Pdf, 23 - Pdf form]
Can be one of:
0
,1
,2
,3
,4
,5
,7
,8
,9
,10
,11
,12
,13
,14
,15
,16
,17
,20
,21
,22
,23
.
- searchInContent
boolean
- withsubfolders
boolean
- applyFilterOption
one of
- .
enum of string
[All - All, Files - Files, Folders - Folders]
Can be one of:
All
,Files
,Folders
.- .
enum of integer
[0 - All, 1 - Files, 2 - Folders]
Can be one of:
0
,1
,2
.
Examples
GET /api/2.0/files/@trash?userIdOrGroupId=75a5f745-f697-4418-b38d-0fe0d277e258&searchInContent=true&withsubfolders=true HTTP/1.1
Accept: application/json
Host: example.com
curl --request GET \
--url 'https://example.com/api/2.0/files/@trash?userIdOrGroupId=75a5f745-f697-4418-b38d-0fe0d277e258&searchInContent=true&withsubfolders=true' \
--header 'Accept: application/json'
Responses
200
The "Trash" section contents
- files
array of unknown
- folders
array of unknown
- current
object
- title
string
- access
one of
- .
enum of string
[None - None, ReadWrite - Read and write, Read - Read, Restrict - Restrict, Varies - Varies, Review - Review, Comment - Comment, FillForms - Fill forms, CustomFilter - Custom filter, RoomAdmin - Room admin, Editing - Editing, PowerUser - Power user]
Can be one of:
None
,ReadWrite
,Read
,Restrict
,Varies
,Review
,Comment
,FillForms
,CustomFilter
,RoomAdmin
,Editing
,PowerUser
.- .
enum of integer
[0 - None, 1 - Read and write, 2 - Read, 3 - Restrict, 4 - Varies, 5 - Review, 6 - Comment, 7 - Fill forms, 8 - Custom filter, 9 - Room admin, 10 - Editing, 11 - Power user]
Can be one of:
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
.
- shared
boolean
- created
object
- utcTime
string
date-time - timeZoneOffset
string
date-span
- createdBy
object
- id
string
uuid - displayName
string
- title
string
- avatar
string
- avatarOriginal
string
- avatarMax
string
- avatarMedium
string
- avatarSmall
string
- profileUrl
string
- hasAvatar
boolean
- isAnonim
boolean
- updated
object
- utcTime
string
date-time - timeZoneOffset
string
date-span
- autoDelete
object
- utcTime
string
date-time - timeZoneOffset
string
date-span
- rootFolderType
one of
- .
enum of string
[DEFAULT - Default, COMMON - Coomon, BUNCH - Bunch, TRASH - Trash, USER - User, SHARE - Share, Projects - Projects, Favorites - Favourites, Recent - Recent, Templates - Templates, Privacy - Privacy, VirtualRooms - Virtual rooms, FillingFormsRoom - Filling forms room, EditingRoom - Editing room, CustomRoom - Custom room, Archive - Archive, ThirdpartyBackup - Thirdparty backup, PublicRoom - Public room, ReadyFormFolder - Ready form folder, InProcessFormFolder - In process form folder, FormFillingFolderDone - Form filling folder done, FormFillingFolderInProgress - Form filling folder in progress]
Can be one of:
DEFAULT
,COMMON
,BUNCH
,TRASH
,USER
,SHARE
,Projects
,Favorites
,Recent
,Templates
,Privacy
,VirtualRooms
,FillingFormsRoom
,EditingRoom
,CustomRoom
,Archive
,ThirdpartyBackup
,PublicRoom
,ReadyFormFolder
,InProcessFormFolder
,FormFillingFolderDone
,FormFillingFolderInProgress
.- .
enum of integer
[0 - Default, 1 - Coomon, 2 - Bunch, 3 - Trash, 5 - User, 6 - Share, 8 - Projects, 10 - Favourites, 11 - Recent, 12 - Templates, 13 - Privacy, 14 - Virtual rooms, 15 - Filling forms room, 16 - Editing room, 19 - Custom room, 20 - Archive, 21 - Thirdparty backup, 22 - Public room, 25 - Ready form folder, 26 - In process form folder, 27 - Form filling folder done, 28 - Form filling folder in progress]
Can be one of:
0
,1
,2
,3
,5
,6
,8
,10
,11
,12
,13
,14
,15
,16
,19
,20
,21
,22
,25
,26
,27
,28
.
- parentRoomType
one of
- .
enum of string
[DEFAULT - Default, COMMON - Coomon, BUNCH - Bunch, TRASH - Trash, USER - User, SHARE - Share, Projects - Projects, Favorites - Favourites, Recent - Recent, Templates - Templates, Privacy - Privacy, VirtualRooms - Virtual rooms, FillingFormsRoom - Filling forms room, EditingRoom - Editing room, CustomRoom - Custom room, Archive - Archive, ThirdpartyBackup - Thirdparty backup, PublicRoom - Public room, ReadyFormFolder - Ready form folder, InProcessFormFolder - In process form folder, FormFillingFolderDone - Form filling folder done, FormFillingFolderInProgress - Form filling folder in progress]
Can be one of:
DEFAULT
,COMMON
,BUNCH
,TRASH
,USER
,SHARE
,Projects
,Favorites
,Recent
,Templates
,Privacy
,VirtualRooms
,FillingFormsRoom
,EditingRoom
,CustomRoom
,Archive
,ThirdpartyBackup
,PublicRoom
,ReadyFormFolder
,InProcessFormFolder
,FormFillingFolderDone
,FormFillingFolderInProgress
.- .
enum of integer
[0 - Default, 1 - Coomon, 2 - Bunch, 3 - Trash, 5 - User, 6 - Share, 8 - Projects, 10 - Favourites, 11 - Recent, 12 - Templates, 13 - Privacy, 14 - Virtual rooms, 15 - Filling forms room, 16 - Editing room, 19 - Custom room, 20 - Archive, 21 - Thirdparty backup, 22 - Public room, 25 - Ready form folder, 26 - In process form folder, 27 - Form filling folder done, 28 - Form filling folder in progress]
Can be one of:
0
,1
,2
,3
,5
,6
,8
,10
,11
,12
,13
,14
,15
,16
,19
,20
,21
,22
,25
,26
,27
,28
.
- updatedBy
object
- id
string
uuid - displayName
string
- title
string
- avatar
string
- avatarOriginal
string
- avatarMax
string
- avatarMedium
string
- avatarSmall
string
- profileUrl
string
- hasAvatar
boolean
- isAnonim
boolean
- providerItem
boolean
- providerKey
string
- providerId
integer
int32 - order
string
- id
integer
int32 - rootFolderId
integer
int32 - originId
integer
int32 - originRoomId
integer
int32 - originTitle
string
- originRoomTitle
string
- canShare
boolean
- security
object
- Read
boolean
- Comment
boolean
- FillForms
boolean
- Review
boolean
- Create
boolean
- Edit
boolean
- Delete
boolean
- CustomFilter
boolean
- EditRoom
boolean
- Rename
boolean
- ReadHistory
boolean
- Lock
boolean
- EditHistory
boolean
- CopyTo
boolean
- Copy
boolean
- MoveTo
boolean
- Move
boolean
- Pin
boolean
- Mute
boolean
- EditAccess
boolean
- Duplicate
boolean
- SubmitToFormGallery
boolean
- Download
boolean
- Convert
boolean
- CopySharedLink
boolean
- ReadLinks
boolean
- Reconnect
boolean
- CreateRoomFrom
boolean
- EditForm
boolean
- CopyLink
boolean
- Embed
boolean
- parentId
integer
int32 - filesCount
integer
int32 - foldersCount
integer
int32 - isShareable
boolean
- isFavorite
boolean
- new
integer
int32 - mute
boolean
- tags
array of unknown
- logo
object
- original
string
- large
string
- medium
string
- small
string
- color
string
- pinned
boolean
- roomType
one of
- .
enum of string
[FillingFormsRoom - Form filling room, EditingRoom - Collaboration room, CustomRoom - Custom room, PublicRoom - Public room]
Can be one of:
FillingFormsRoom
,EditingRoom
,CustomRoom
,PublicRoom
.- .
enum of integer
[1 - Form filling room, 2 - Collaboration room, 5 - Custom room, 6 - Public room]
Can be one of:
1
,2
,5
,6
.
- private
boolean
- type
one of
- .
enum of string
[DEFAULT - Default, COMMON - Coomon, BUNCH - Bunch, TRASH - Trash, USER - User, SHARE - Share, Projects - Projects, Favorites - Favourites, Recent - Recent, Templates - Templates, Privacy - Privacy, VirtualRooms - Virtual rooms, FillingFormsRoom - Filling forms room, EditingRoom - Editing room, CustomRoom - Custom room, Archive - Archive, ThirdpartyBackup - Thirdparty backup, PublicRoom - Public room, ReadyFormFolder - Ready form folder, InProcessFormFolder - In process form folder, FormFillingFolderDone - Form filling folder done, FormFillingFolderInProgress - Form filling folder in progress]
Can be one of:
DEFAULT
,COMMON
,BUNCH
,TRASH
,USER
,SHARE
,Projects
,Favorites
,Recent
,Templates
,Privacy
,VirtualRooms
,FillingFormsRoom
,EditingRoom
,CustomRoom
,Archive
,ThirdpartyBackup
,PublicRoom
,ReadyFormFolder
,InProcessFormFolder
,FormFillingFolderDone
,FormFillingFolderInProgress
.- .
enum of integer
[0 - Default, 1 - Coomon, 2 - Bunch, 3 - Trash, 5 - User, 6 - Share, 8 - Projects, 10 - Favourites, 11 - Recent, 12 - Templates, 13 - Privacy, 14 - Virtual rooms, 15 - Filling forms room, 16 - Editing room, 19 - Custom room, 20 - Archive, 21 - Thirdparty backup, 22 - Public room, 25 - Ready form folder, 26 - In process form folder, 27 - Form filling folder done, 28 - Form filling folder in progress]
Can be one of:
0
,1
,2
,3
,5
,6
,8
,10
,11
,12
,13
,14
,15
,16
,19
,20
,21
,22
,25
,26
,27
,28
.
- inRoom
boolean
- quotaLimit
integer
int64 - isCustomQuota
boolean
- usedSpace
integer
int64 - fileEntryType
enum of integer
int32 Can be one of:
1
,2
.
- pathParts
unknown
- startIndex
integer
int32 - count
integer
int32 - total
integer
int32 - new
integer
int32
401
Unauthorized
403
Forbidden