**Version: 202201**

# Theme

Manage storefront themes, including installation, configuration, and asset editing.

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, delete, publish, and upgrade themes, query the default theme and background tasks, browse the theme doc tree, create, read, update, rename, and delete theme files, and inspect file version history.

- [Get Theme](/api/202201/get-theme) `GET /openapi/2022-01/themes/:theme_id`: Retrieve details of a specific theme using its unique identifier.

- [Delete Theme](/api/202201/delete-theme) `DELETE /openapi/2022-01/themes/:theme_id`: Delete a specific theme using its unique identifier.

- [Get Theme List](/api/202201/get-theme-list) `GET /openapi/2022-01/themes`: Retrieve a list of all themes.

[

## 📄️Download Theme

](/api/202201/download-theme)

- [Get Default Theme](/api/202201/get-default-theme) `GET /openapi/2022-01/themes/default-theme`: Retrieve details of a default theme.

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

- [Get Theme Doctree](/api/202201/get-theme-doctree) `GET /openapi/2022-01/themes/:theme_id/doctree`: Retrieve details of a specific theme's doc-tree using its unique identifier.

- [Get Theme File](/api/202201/get-theme-file) `GET /openapi/2022-01/themes/:theme_id/doc`: Retrieve details of a specific theme's doc file using its unique identifier

- [Create Theme File](/api/202201/create-theme-file) `POST /openapi/2022-01/themes/:theme_id/doc`: Creates a new file within the specified theme.

- [Update Theme File](/api/202201/update-theme-file) `PATCH /openapi/2022-01/themes/:theme_id/doc`: Update the content of a specific theme file in the selected theme.

- [Delete Theme File](/api/202201/delete-theme-file) `DELETE /openapi/2022-01/themes/:theme_id/doc`: Delete a specific theme file by theme ID, file type, and file location.

[

## 📄️Upload Theme

](/api/202201/upload-theme)

[

## 📄️Upload Theme Static Assets

](/api/202201/create-theme-assets)
