# DestinationFile

Type: object

Fields typed as another model are documented on that model's page; fetch it before filling the field.

| Field | Type | Required | Description | Allowed values / default / constraints |
| --- | --- | --- | --- | --- |
| `type` | string | yes | Writes the result into an existing **file**. | const: `"file"` |
| `provider` | [Provider](https://dev-api.sheetgo.com/rest/reference/models/Provider.md) | yes | The storage provider that hosts the file or folder |  |
| `id` | string | yes | Id of the destination file or folder |  |
| `file_type` | [FileType](https://dev-api.sheetgo.com/rest/reference/models/FileType.md) | yes | The file type |  |
| `sheet_name` | string, nullable | no | The sheet name |  |
| `append` | boolean, nullable | no | Data will be added under previous entries to track historical changes | default: `false` |
| `lock_destination_tab` | boolean, nullable | no | Lock the destination tab and clear added columns with each transfer | default: `true` |
| `parse_data` | boolean, nullable | no | Convert text to numbers, dates, and formulas | default: `true` |
| `identify_data` | [IdentifyDataType](https://dev-api.sheetgo.com/rest/reference/models/IdentifyDataType.md), nullable | no | It will create an extra column in the destination tab, identifying the latest transfers of your new sheet and/or the source file of each row of data, making data traceable when merging sources. |  |
| `one_tab_per_document` | boolean | no | Documents folder source only: one tab per document (up to 100) instead of all documents in one tab. | default: `false` |
| `write_summary_tab` | boolean | no | Documents folder source only: add a `Files` tab listing each document read, its status and row count. | default: `false` |
| `enforce_header_match` | boolean | no | Documents folder source only: line documents' columns up by position instead of by name. Ignored with `one_tab_per_document`. | default: `false` |

## Used by

- [GET /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#get-rest-beta-automations)
- [GET /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#get-rest-beta-automations-id)
- [GET /rest/beta/workflows/](https://dev-api.sheetgo.com/rest/reference/workflows.md#get-rest-beta-workflows)
- [GET /rest/beta/workflows/{id}](https://dev-api.sheetgo.com/rest/reference/workflows.md#get-rest-beta-workflows-id)
- [PATCH /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#patch-rest-beta-automations-id)
- [PATCH /rest/beta/workflows/{id}](https://dev-api.sheetgo.com/rest/reference/workflows.md#patch-rest-beta-workflows-id)
- [POST /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#post-rest-beta-automations)
- [POST /rest/beta/workflows/](https://dev-api.sheetgo.com/rest/reference/workflows.md#post-rest-beta-workflows)
- [PUT /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#put-rest-beta-automations-id)
- [AutomationCreate](https://dev-api.sheetgo.com/rest/reference/models/AutomationCreate.md)
- [AutomationModel](https://dev-api.sheetgo.com/rest/reference/models/AutomationModel.md)
- [AutomationReplace](https://dev-api.sheetgo.com/rest/reference/models/AutomationReplace.md)
- [WorkflowAutomationModel](https://dev-api.sheetgo.com/rest/reference/models/WorkflowAutomationModel.md)

---

More: start page https://dev-api.sheetgo.com/rest/reference.md, everything in one file https://dev-api.sheetgo.com/rest/llms-full.txt, OpenAPI https://dev-api.sheetgo.com/rest/openapi.json.
