Skip to content

FileTrashItemResponseDto

Endpoints · All schemas

FieldRequiredDescription
checksumYesHex-encoded SHA-256 checksum of the file
idYesFile trash entry id
lastAssetIdYesAsset that held the file last, when known
lastOwnerIdYesAccount whose library held the file last, when known
lastOwnerNameYesName of that account, while it exists
originalFileNameYesName of the file when it was last in a library
sizeInBytesYesSize of the file in bytes
trashedAtYesWhen the file was moved to the file trash

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

{
  "properties": {
    "checksum": {
      "description": "Hex-encoded SHA-256 checksum of the file",
      "type": "string"
    },
    "id": {
      "description": "File trash entry id",
      "type": "string"
    },
    "lastAssetId": {
      "description": "Asset that held the file last, when known",
      "nullable": true,
      "type": "string"
    },
    "lastOwnerId": {
      "description": "Account whose library held the file last, when known",
      "nullable": true,
      "type": "string"
    },
    "lastOwnerName": {
      "description": "Name of that account, while it exists",
      "nullable": true,
      "type": "string"
    },
    "originalFileName": {
      "description": "Name of the file when it was last in a library",
      "type": "string"
    },
    "sizeInBytes": {
      "description": "Size of the file in bytes",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "trashedAt": {
      "description": "When the file was moved to the file trash",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "checksum",
    "id",
    "lastAssetId",
    "lastOwnerId",
    "lastOwnerName",
    "originalFileName",
    "sizeInBytes",
    "trashedAt"
  ],
  "type": "object"
}