v5
latestOpenAPI 3.1.02026-08-04166362486.5 KBfiles
Update file
Update the details of a specific file.
Args: file_id: The ID of the file to update. file: The new details for the file.
Returns: FileObject: The updated file details.
post/v1/files/{file_id}
Path parameters
file_idstring uuid required
The ID of the file to update
The ID of the file to update
Response
The updated file details
Example response
{
"id": "file_abc123",
"filename": "document.pdf",
"bytes": 1024,
"mime_type": "application/pdf",
"version": 1
}