---
title: OnlineStoreThemeFilesUpsertFileInput - GraphQL Admin
description: The input fields for the file to create or update.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OnlineStoreThemeFilesUpsertFileInput
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OnlineStoreThemeFilesUpsertFileInput.md
api_name: admin
api_type: graphql
type: input-object
---

# Online​Store​Theme​Files​Upsert​File​Input

input\_object

The input fields for the file to create or update.

## Fields

* body

  [Online​Store​Theme​File​Body​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/OnlineStoreThemeFileBodyInput)

  required

  The body of the theme file.

* filename

  [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  non-null

  The filename of the theme file.

***

## Mutations using this input

* [theme​Files​Upsert.files](https://shopify.dev/docs/api/admin-graphql/latest/mutations/themeFilesUpsert#arguments-files)

  ARGUMENT

***

## Map

### Mutations using this input

* [theme​Files​Upsert.files](https://shopify.dev/docs/api/admin-graphql/latest/mutations/themeFilesUpsert#arguments-files)
