delete https://{shopdomain}.myshoplaza.com/openapi/2022-01/script_tags_new/
Requires
read_script_tags
access scope.More access scope
The Delete Script Tag API removes a specific script tag from a shop's storefront. This is used to revoke unnecessary or outdated scripts to prevent unwanted behavior or functionality.
This API is especially useful for:
- Removing scripts that are no longer relevant to the storefront.
- Cleaning up unused or deprecated functionality.
Request Parameters
Public Request Parameters
Path Parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
id | string | Yes | Unique identifier of the script tag. | f50950fa-40ec-441f-b98d-e1869050bdf2 |
Response Explanation
Public Response Parameters
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 | "page not found" | 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 | |
404 | Not found | Script's ID is empty or not provided | "record not found" |