Update theme file
theme_update_fileOverwrite a single file in a Shopify theme with new content. Get the theme ID from theme_list first.
Instructions
Overwrite one file in a Shopify theme with new content. Get the theme ID from theme_list first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| themeId | Yes | Theme GID, e.g. gid://shopify/OnlineStoreTheme/123456789 | |
| filePath | Yes | Path inside the theme, e.g. sections/header.liquid or templates/index.json | |
| fileContent | Yes | Full new file content — replaces the file entirely |