Skip to content

TrashApplyDto

Endpoints · All schemas

FieldRequiredDescription
actionYesSee definition below
idsNoThe chosen items, for trash, restore and delete. Ignored by restore-all and empty.
sourceNoThe utility the change was made from. A move to the trash or a restore from Large files is kept in its activity history.
tokenYesThe token returned by the review

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: TrashReviewAction, UtilityActivityTool

{
  "properties": {
    "action": {
      "$ref": "#/components/schemas/TrashReviewAction"
    },
    "ids": {
      "description": "The chosen items, for trash, restore and delete. Ignored by restore-all and empty.",
      "items": {
        "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"
      },
      "maxItems": 50000,
      "type": "array"
    },
    "source": {
      "$ref": "#/components/schemas/UtilityActivityTool",
      "description": "The utility the change was made from. A move to the trash or a restore from Large files is kept in its activity history."
    },
    "token": {
      "description": "The token returned by the review",
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "action",
    "token"
  ],
  "type": "object"
}