theme Files Upsert
Requires The user needs write_themes and an exemption from Shopify to modify theme files. If you think that your app is eligible for an exemption and should have access to this API, then you can submit an exception request.
Creates or updates theme files in an online store theme. This mutation allows batch operations on multiple theme files, either creating new files or overwriting existing ones with the same filename.
You can process a maximum of 50 files in a single request.
Each file requires a filename and body content. The body must specify a type with the corresponding value. The mutation returns a job field for tracking asynchronous operations and an field with details about the processed files.
Arguments
- Anchor to filesfiles•[Online
Store Theme Files Upsert File Input!]! required The files to update.
- Anchor to themeIdtheme•ID!
Id required The theme to update.
- •Job
The theme files write job triggered by the mutation.
- Anchor to upsertedThemeFilesupserted•[Online
Theme Files Store Theme File Operation Result!] The resulting theme files.
- Anchor to userErrorsuser•[Online
Errors Store Theme Files User Errors!]! non-null The list of errors that occurred from executing the mutation.