delete https://{shopdomain}.myshoplaza.com/openapi/2022-01/themes/
Requires
write_themes
access scope. More access scope
The Delete Theme API allows users to remove a theme from the store. This action cannot be undone, so ensure that the theme is no longer needed before deleting it.
This API is especially useful for:
- Managing and cleaning up unused themes in the store.
- Automating the deletion of outdated or unneeded themes.
Request Parameters
Public Request Parameters
Path Parameters
Name | Type | Description | Example |
---|---|---|---|
theme_id | string | The unique ID of the theme to be deleted. | 1500021b-88ed-4750-bbc5-97ec98351dc0 |
Response Explanation
Public Response Parameters
Successful Response
Field | Type | Description | Example |
---|---|---|---|
state | integer | The state of the response (0 indicates success). | 0 |
msg | string | A message indicating the result of the operation. | 请求成功 |
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.
Field | Type | Example | Description |
---|---|---|---|
error | String | "store is not active" | Indicates an error encountered during the process |
Error Detail
Status Code | Message | Possible Reason | Example Response |
---|---|---|---|
400 | Bad Request | Invalid input format or request structure (e.g., missing required fields or incorrect data types). | Bad Request |
Unauthorized | The request is missing valid authentication credentials or the credentials provided are invalid. | Unauthorized |