---
title: OnlineStoreThemeFileBody - GraphQL Admin
description: Represents the body of a theme file.
api_version: 2026-10
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/latest/unions/onlinestorethemefilebody
  md: https://shopify.dev/docs/api/admin-graphql/latest/unions/onlinestorethemefilebody.md
---

# OnlineStoreThemeFileBody

union

Requires `read_themes` access scope.

Represents the body of a theme file.

## Fields with this union

* [OnlineStoreThemeFile.body](https://shopify.dev/docs/api/admin-graphql/latest/objects/OnlineStoreThemeFile#field-OnlineStoreThemeFile.fields.body)

  OBJECT

  Represents a theme file.

***

```graphql
union OnlineStoreThemeFileBody = OnlineStoreThemeFileBodyBase64 | OnlineStoreThemeFileBodyText | OnlineStoreThemeFileBodyUrl
```