Trashed Folder
Represents a trashed folder.Attributes and example
Attributes and example
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier that represent a folder. The ID for any folder can be determined by visiting a folder in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/folders/123 the folder_id is 123. |
etag | string | No | The HTTP etag of this folder. This can be used within some API endpoints in the If-Match and If-None-Match headers to only perform changes on the folder if (no) changes have happened. Can be null. |
type | enum<string> | Yes | The value will always be folder. Available options: folder. |
sequence_id | string | No | A numeric identifier that represents the most recent user event that has been applied to this item. This can be used in combination with the GET /events-endpoint to filter out user events that would have occurred before this identifier was read. An example would be where a Box Drive-like application would fetch an item via the API, and then listen to incoming user events for changes to the item. The application would ignore any user events where the sequence_id in the event is smaller than or equal to the sequence_id in the originally fetched resource. Can be null. |
name | string | Yes | The name of the folder. |
created_at | string | No | The date and time when the folder was created. This value may be null for some folders such as the root folder or the trash folder. Can be null. |
modified_at | string | No | The date and time when the folder was last updated. This value may be null for some folders such as the root folder or the trash folder. Can be null. |
description | string | Yes | The optional description of this folder. |
size | integer | Yes | The folder size in bytes. Be careful parsing this integer as its value can get very large. |
path_collection | object | Yes | A list of parent folders for an item in the trash. |
created_by | User (Mini) | Yes | The user who created this folder. |
modified_by | User (Mini) | Yes | The user who last modified this folder. |
trashed_at | string | No | The time at which this folder was put in the trash. Can be null. |
purged_at | string | No | The time at which this folder is expected to be purged from the trash. Can be null. |
content_created_at | string | No | The date and time at which this folder was originally created. Can be null. |
content_modified_at | string | No | The date and time at which this folder was last updated. Can be null. |
owned_by | User (Mini) | Yes | The user who owns this folder. |
shared_link | string | No | The shared link for this folder. This will be null if a folder has been trashed, since the link will no longer be active. Can be null. |
folder_upload_email | string | No | The folder upload email for this folder. This will be null if a folder has been trashed, since the upload will no longer work. Can be null. |
parent | Folder (Mini) | No | The optional folder that this folder is located within. This value may be null for some folders such as the root folder or the trash folder. Can be null. |
item_status | enum<string> | Yes | Defines if this item has been deleted or not. - active when the item has is not in the trash - trashed when the item has been moved to the trash but not deleted - deleted when the item has been permanently deleted. Available options: active, trashed, deleted. |
Example
Trashed Folder (Restored)
Represents a folder restored from the trash.Attributes and example
Attributes and example
| Property | Type | Required | Description |
|---|---|---|---|
id | string | No | The unique identifier that represent a folder. The ID for any folder can be determined by visiting a folder in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/folders/123 the folder_id is 123. |
etag | string | No | The HTTP etag of this folder. This can be used within some API endpoints in the If-Match and If-None-Match headers to only perform changes on the folder if (no) changes have happened. Can be null. |
type | enum<string> | No | The value will always be folder. Available options: folder. |
sequence_id | string | No | A numeric identifier that represents the most recent user event that has been applied to this item. This can be used in combination with the GET /events-endpoint to filter out user events that would have occurred before this identifier was read. An example would be where a Box Drive-like application would fetch an item via the API, and then listen to incoming user events for changes to the item. The application would ignore any user events where the sequence_id in the event is smaller than or equal to the sequence_id in the originally fetched resource. Can be null. |
name | string | No | The name of the folder. |
created_at | string | No | The date and time when the folder was created. This value may be null for some folders such as the root folder or the trash folder. Can be null. |
modified_at | string | No | The date and time when the folder was last updated. This value may be null for some folders such as the root folder or the trash folder. Can be null. |
description | string | No | The optional description of this folder. |
size | integer | No | The folder size in bytes. Be careful parsing this integer as its value can get very large. |
path_collection | object | No | A list of parent folders for an item. |
created_by | User (Mini) | No | The user who created this folder. |
modified_by | User (Mini) | No | The user who last modified this folder. |
trashed_at | string | No | The time at which this folder was put in the trash - becomes null after restore. Can be null. |
purged_at | string | No | The time at which this folder is expected to be purged from the trash - becomes null after restore. Can be null. |
content_created_at | string | No | The date and time at which this folder was originally created. Can be null. |
content_modified_at | string | No | The date and time at which this folder was last updated. Can be null. |
owned_by | User (Mini) | No | The user who owns this folder. |
shared_link | string | No | The shared link for this file. This will be null if a folder had been trashed, even though the original shared link does become active again. Can be null. |
folder_upload_email | string | No | The folder upload email for this folder. This will be null if a folder has been trashed, even though the original upload email does become active again. Can be null. |
parent | Folder (Mini) | No | The optional folder that this folder is located within. This value may be null for some folders such as the root folder or the trash folder. Can be null. |
item_status | enum<string> | No | Defines if this item has been deleted or not. - active when the item has is not in the trash, - trashed when the item has been moved to the trash but not deleted, - deleted when the item has been permanently deleted. Available options: active, trashed, deleted. |
Example
