**Version: 202701**

# Theme

Manage storefront themes: list, install, publish, and maintain themes

A theme controls the storefront's visual layout and templates, and consists of layouts, templates, sections, snippets, assets, configs, and locale files.

Provides endpoints to list, retrieve, and delete themes, get the default theme, rename, duplicate, publish, and upgrade a theme, browse the theme market and install a theme from it, and query background tasks. To read and write a theme's files, see Theme File; to edit a theme through an edit session, see Theme Session.

- [List themes](/api/202701/themes) `GET /openapi/2027-01/themes`: List the store's themes; filter by `published` or `ids`.

- [Get theme info](/api/202701/theme-detail) `GET /openapi/2027-01/themes/:theme_id`: Retrieve details of a specific theme using its unique identifier.

- [Delete theme](/api/202701/theme-delete) `DELETE /openapi/2027-01/themes/:theme_id`: Delete a specific theme using its unique identifier. The default theme cannot be deleted.

- [Get default theme](/api/202701/theme-default) `GET /openapi/2027-01/themes/default-theme`: Get the details of the store's default theme.

- [Rename theme](/api/202701/theme-rename) `PATCH /openapi/2027-01/themes/:theme_id/name`: Change the display name of a theme in the current store.

- [Duplicate theme](/api/202701/theme-duplicate) `POST /openapi/2027-01/themes/copy`: Copy an existing theme within the current store into a new one and return the new theme ID;

- [Publish theme](/api/202701/theme-publish) `PATCH /openapi/2027-01/themes/:theme_id/publish`: Publish a specific theme using its unique identifier.

- [Upgrade theme](/api/202701/theme-upgrade) `POST /openapi/2027-01/themes/:theme_id/upgrade`: Create a new theme upgraded to the latest version from the specified theme, carrying over its

- [List market themes](/api/202701/theme-market) `GET /openapi/2027-01/themes/merchant-themes`: Retrieve the installable platform themes in the theme market. Supports filtering by price

- [Install market theme](/api/202701/theme-install) `POST /openapi/2027-01/themes/merchant-themes/:remote_theme_id/install`: Install a theme from the theme market into the current store by its market theme id. Supports

- [Get theme task](/api/202701/theme-task) `GET /openapi/2027-01/themes/task/:task_id`: Get the status and details of a theme background task, such as a theme upload or upgrade.
