draft Theme Files Commit
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.
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.
Arguments
- sessionId (String!)
- themeId (ID!)
- 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.
- deletedThemeFiles ([OnlineStoreThemeFileOperationResult!])
- upsertedThemeFiles ([OnlineStoreThemeFileOperationResult!])
- userErrors ([OnlineStoreThemeFilesUserErrors!]!)
- Anchor to deletedThemeFilesdeleted•[Online
Theme Files Store Theme File Operation Result!] The theme files committed from staged deletions.
Show fields
- Anchor to upsertedThemeFilesupserted•[Online
Theme Files Store Theme File Operation Result!] The theme files committed from staged updates.
Show fields
- Anchor to userErrorsuser•[Online
Errors Store Theme Files User Errors!]! non-null The list of errors that occurred from executing the mutation.
Show fields