UpdateFileBody

Request body for updating a File.

Definition

TypeScript
interface UpdateFileBody {
  name?: string | undefined;
  directoryId?: string | undefined;
  expiresAt?: string | null | undefined;
}

Fields

FieldTypeNotes
namestring | undefinedoptional — New filename.
directoryIdstring | undefinedoptional — Destination directory if moving the file.
expiresAtstring | null | undefinedoptional — Update the file TTL. Pass a future ISO-8601 timestamp to set expiry, or null to keep the file permanently.