> ## Documentation Index
> Fetch the complete documentation index at: https://developers.myhero.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Drive update file

> Replace the text content of a Google Drive file HERO created. Drive keeps the previous revision, so this is recoverable from the file's version history…

`drive_update_file`

Replace the text content of a Google Drive file HERO created. Drive keeps the previous revision, so this is recoverable from the file's version history. Fails with 403 on files HERO did not create.

## Parameters

<ParamField path="fileId" type="string" required>
  Drive file id.
</ParamField>

<ParamField path="content" type="string" required>
  New full text content — replaces what is there.
</ParamField>

<ParamField path="mimeType" type="string">
  MIME type of the new content. Default text/plain.
</ParamField>
