Update Item
AI-generatedSummary
Update file metadata (name and description)
Inputs
- fileId (required) — ID of the file to update
- updateFields — Collection of fields to update, such as name and description
Output shape
an array of updated file metadata objects
Each element contains the updated file's metadata; operation fails if no fields are provided
Examples
Example 1: Rename a file and change its description
Set fileId to the target file's ID, then provide updateFields with name='New Name' and description='Annual report'
Example 2: Update only the description
Provide fileId, then set updateFields with description='Updated summary' (name left empty)