Publish Theme

🔒

Requires write_themes access scope. More access scope

The Publish Theme API sets a theme as the currently active or published theme for the store. Only one theme can be active at any given time, and using this API will replace the current active theme with the specified theme.

This API is especially useful for:

  1. Programmatically activating a newly created or modified theme.
  2. Automating the theme publishing process for store updates.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

NameTypeDescriptionExample
theme_idstringThe unique ID of the theme to be published.1500021b-88ed-4750-bbc5-97ec98351dc0

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeDescriptionExample
idstringThe unique ID of the theme.1500021b-88ed-4750-bbc5-97ec98351dc0
merchant_theme_idstringThe merchant-specific ID of the theme.b3cb6968-2288-4b7e-afcb-62a1b1fa3e4c
theme_version_idstringThe version ID of the theme.16978
namestringThe name of the theme.Wind
localestringThe locale of the theme.en-US
publishedstringIndicates whether the theme is published (1 for yes, 0 for no).1
statusstringThe status of the theme.1
updated_atstringTimestamp when the theme was last updated.1735010885
publish_timestringTimestamp when the theme was published.1735010885
pricearrayPricing information for the theme.[]
revoke_publish_idstringID used to revoke publishing, if applicable.""

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!