Skip to main content
Update information for an existing file

Usage

Returns

Parameters

id

  • Type: string
ID of the target file to update

name (Optional)

  • Type: string
Update the name of a file

keyvalues (Optional)

  • Type: Record<string, string>
Update the keyvalues of a file

expires_at (Optional)

  • Type: number
Set or update the expiration date for the file using a Unix timestamp. The timestamp must be in the future. Once the expiration time is reached, the file will be automatically deleted.