Anchor to draftThemeFilesCommitdraft
mutationdraft 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.
Anchor to Arguments
Arguments
- sessionId (String!)
- themeId (ID!)
- Anchor to sessionIdsession•String!
Id required The caller-provided session to commit.
- Anchor to themeIdtheme•ID!
Id required The theme to commit staged updates to.
Was this section helpful?
- deletedThemeFiles ([OnlineStoreThemeFileOperationResult!])
- upsertedThemeFiles ([OnlineStoreThemeFileOperationResult!])
- userErrors ([OnlineStoreThemeFilesUserErrors!]!)
- Anchor to deletedThemeFilesdeleted•[Online
Theme Files Store Theme File Operation Result!] The theme files committed from staged deletions.
- Anchor to upsertedThemeFilesupserted•[Online
Theme Files Store Theme File Operation Result!] The theme files committed from staged updates.
- Anchor to userErrorsuser•[Online
Errors Store Theme Files User Errors!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?