---
url: https://api-doc.aive.com/api/types/interfaces/file.md
---

File is a common interface implemented by every resource that lives in a
workspace's folder hierarchy, such as a Folder or a Container.

```graphql
interface File {
  id: ID!
  name: String!
  createdAt: Date!
  updatedAt: Date!
  folder: Folder
  workspace: Workspace!
}
```

### Fields

#### [File.id](#id) ● [ID!](/api/types/scalars/id) non-null scalar {#id}

The unique identifier of the file.

#### [File.name](#name) ● [String!](/api/types/scalars/string) non-null scalar {#name}

The display name of the file.

#### [File.createdAt](#created-at) ● [Date!](/api/types/scalars/date) non-null scalar {#created-at}

The date and time at which the file was created.

#### [File.updatedAt](#updated-at) ● [Date!](/api/types/scalars/date) non-null scalar {#updated-at}

The date and time at which the file was last updated.

#### [File.folder](#folder) ● [Folder](/api/types/objects/folder) object {#folder}

The parent folder of the file, or null if the file is at the root of the workspace.

#### [File.workspace](#workspace) ● [Workspace!](/api/types/objects/workspace) non-null object {#workspace}

The workspace the file belongs to.

### Member Of

[`FilesPagination`](/api/types/objects/files-pagination)  object

### Implemented By

[`Container`](/api/types/objects/container)  object ● [`Folder`](/api/types/objects/folder)  object ● [`FontFamily`](/api/types/objects/font-family)  object ● [`Image`](/api/types/objects/image)  object ● [`Montage`](/api/types/objects/montage)  object
