# FileStructureResponse

What is inside one file.

Discriminated by `file_type`: the matching body key is populated and the
others are absent. Today only `spreadsheet` exists; a future document
variant adds `document` without changing this URL.

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 |
| --- | --- | --- | --- | --- |
| `file_id` | string | yes | Id of the file that was inspected. |  |
| `provider` | string | yes | Storage provider the file lives on. |  |
| `name` | string, nullable | no | The file's name. |  |
| `file_type` | string | yes | Body discriminator, e.g. `spreadsheet` |  |
| `resolved_file` | [ResolvedFile](https://dev-api.sheetgo.com/rest/reference/models/ResolvedFile.md), nullable | no | Set when `file_id` was a folder: the newest spreadsheet in it, whose structure is returned. |  |
| `spreadsheet` | [SpreadsheetStructure](https://dev-api.sheetgo.com/rest/reference/models/SpreadsheetStructure.md), nullable | no | The spreadsheet's tabs, named ranges and charts. Populated when `file_type` is `spreadsheet`, absent otherwise. |  |

## Used by

- [GET /rest/beta/files/{provider}/{file_id}/structure](https://dev-api.sheetgo.com/rest/reference/files.md#get-rest-beta-files-provider-file-id-structure)

---

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.
