Online Store Theme Files User Errors
Requires The user needs write_themes and an exemption from Shopify to modify theme files.
User errors for theme file operations.
Anchor to FieldsFields
- code (OnlineStoreThemeFilesUserErrorsCode)
- field ([String!])
- filename (String)
- message (String!)
- Anchor to codecode•Online
Store Theme Files User Errors Code The error code.
Show enum values
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to filenamefilename•String
The filename of the theme file.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- draftThemeFilesCommit (DraftThemeFilesCommitPayload)
- themeFilesCopy (ThemeFilesCopyPayload)
- themeFilesDelete (ThemeFilesDeletePayload)
- themeFilesUpsert (ThemeFilesUpsertPayload)
- •mutation
Commits staged theme file changes for a caller-provided session. After any attempt other than session lock contention, the session is consumed and scheduled for cleanup. Retry by staging the complete desired snapshot under a new session ID.
Show payload
- Anchor to sessionIdsession•String!
Id required The caller-provided session to commit. A non-contention commit attempt consumes this session, so it must not be reused. Retry with a new session ID after restaging the complete desired snapshot.
- Anchor to themeIdtheme•ID!
Id required The theme to commit staged updates to.
Arguments
- •mutation
Copy theme files. Copying to existing theme files will overwrite them.
Show payload
- Anchor to filesfiles•[Theme
Files Copy File Input!]! required The files to update.
Show input fields
- Anchor to themeIdtheme•ID!
Id required The theme to update.
Arguments
- •mutation
Deletes a theme's files.
Show payload
- Anchor to filesfiles•[String!]!required
The files to delete.
- Anchor to themeIdtheme•ID!
Id required Specifies the theme to deleted.
Arguments
- •mutation
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.
NoteYou can process a maximum of 50 files in a single request.
Note:You can process a maximum of 50 files in a single request.
Note: 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
typewith the correspondingvalue. The mutation returns ajobfield for tracking asynchronous operations and anfield with details about the processed files.Show payload
- Anchor to filesfiles•[Online
Store Theme Files Upsert File Input!]! required The files to update.
Show input fields
- Anchor to themeIdtheme•ID!
Id required The theme to update.
Arguments