Skip to content

TrashItemResponseDto

Endpoints · All schemas

FieldRequiredDescription
fileSizeInByteYesSize of the original, in bytes, when known
idYesAsset ID
isLockedYesLocked media; only listed for its owner in an unlocked session
isOfflineYesThe library scan found this external original missing and manages it; trash actions do not change it
originalFileNameYesOriginal file name
trashedAtYesWhen the item was moved to the trash
typeYesSee definition below

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.

Field definitions: AssetTypeEnum

{
  "properties": {
    "fileSizeInByte": {
      "description": "Size of the original, in bytes, when known",
      "maximum": 9007199254740991,
      "minimum": 0,
      "nullable": true,
      "type": "integer"
    },
    "id": {
      "description": "Asset ID",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "isLocked": {
      "description": "Locked media; only listed for its owner in an unlocked session",
      "type": "boolean"
    },
    "isOffline": {
      "description": "The library scan found this external original missing and manages it; trash actions do not change it",
      "type": "boolean"
    },
    "originalFileName": {
      "description": "Original file name",
      "type": "string"
    },
    "trashedAt": {
      "description": "When the item was moved to the trash",
      "format": "date-time",
      "nullable": true,
      "type": "string"
    },
    "type": {
      "$ref": "#/components/schemas/AssetTypeEnum"
    }
  },
  "required": [
    "fileSizeInByte",
    "id",
    "isLocked",
    "isOffline",
    "originalFileName",
    "trashedAt",
    "type"
  ],
  "type": "object"
}