Version: 202201
Update Script Tag
PUT/openapi/2022-01/script_tags_new/:id
Request
Path Parameters
id stringrequired
Script's ID
- application/json
- Body
- Example
Body
srcstringrequired
Script file url, for example: https://www.shoplazza.com/x.js
display_scopestring
Display scope, for example: index
event_typestring
Tag type, for example: myapp
{
"src": "string",
"display_scope": "string",
"event_type": "string"
}
Responses
- 200
- 404
- 422
200
- application/json
- Schema
- Example
- Result
Schema
script_tag object
idstring
Example:
f50950fa-40ec-441f-b98d-e1869050dbf2display_scopestring
Example:
allevent_typestring
Example:
appsrcstring
Example:
https://shoplazza.com/x.jscreated_atstring
Example:
2024-04-29T03:22:50Zupdated_atstring
Example:
2024-04-29T05:59:40Z{
"script_tag": {
"id": "f50950fa-40ec-441f-b98d-e1869050dbf2",
"display_scope": "all",
"event_type": "app",
"src": "https://shoplazza.com/x.js",
"created_at": "2024-04-29T03:22:50Z",
"updated_at": "2024-04-29T05:59:40Z"
}
}
{
"script_tag": {
"id": "f50950fa-40ec-441f-b98d-e1869050dbf2",
"display_scope": "all",
"event_type": "app",
"src": "https://shoplazza.com/x.js",
"created_at": "2024-04-29T03:22:50Z",
"updated_at": "2024-04-29T05:59:40Z"
}
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"record not found"
]
}
{
"errors": [
"record not found"
]
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"src not is file url"
]
}
{
"errors": [
"src not is file url"
]
}