Skip to main content
Anchor to draftThemeFilesCommit

draftThemeFilesCommit

mutation

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.

•String!
required

The caller-provided session to commit.

•ID!
required

The theme to commit staged updates to.


Was this section helpful?

Anchor to DraftThemeFilesCommitPayload returnsDraftThemeFilesCommitPayload returns

•[OnlineStoreThemeFileOperationResult!]

The theme files committed from staged deletions.

•[OnlineStoreThemeFileOperationResult!]

The theme files committed from staged updates.

•[OnlineStoreThemeFilesUserErrors!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?