# veryfront__update_external_file

Update external file. Requires project.integrations.connect.

Risk: mutating.

## Arguments

| Name                | Type    | Required | Description                                                                                                      |
| ------------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string  |          | Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection. |
| `provider`          | string  | Yes      | Storage provider accessed through the caller's own personal connection. A shared project connection is not used. |
| `file_id`           | string  | Yes      | File ID from list\_external\_files whose entire content is replaced.                                             |
| `content`           | string  | Yes      | New content for the file: text, or base64 when content\_encoding is base64                                       |
| `content_encoding`  | string  |          | Encoding of content: "utf8" (default) or "base64"                                                                |
| `if_match`          | string  |          | etag from list\_external\_files or get\_external\_file; the update is refused when the file changed              |
| `confirm`           | boolean | Yes      | Must be true: this call replaces or deletes provider data. false refuses the call.                               |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_external_file",
    "arguments": {
      "provider": "<provider>",
      "file_id": "<file_id>",
      "content": "<content>",
      "confirm": "<confirm>"
    }
  }
}
```
