Basic information
POST /{shopId}/script-tags
Creates a new script tag.
Authorisation
OAuth 2.0 Token required with scopes:
scripttags_write
URI parameters
| Name | Type | Description |
|---|---|---|
shopId |
string |
The unique identifier of the shop. Required:
true
Example:
DemoShop
|
Request attributes
| Name | Type | Description |
|---|---|---|
|
object of scriptTag (create request) |
Request body
Media type application/json
{
"scriptUrl": "https://widgets.example.com/social.js?id=123ab"
}
Response attributes
| Name | Type | Description |
|---|---|---|
|
object of scriptTag |
Response
HTTP 201
Media type application/json
{
"scriptTagId": "A348E2BC-F704-4515-868C-5F9E19B4D702",
"scriptUrl": "https://widgets.example.com/social.js?id=123ab",
"scriptType": "NORMAL",
"createdOn": "2017-02-21T14:30:15Z",
"updatedOn": "2017-02-21T14:30:15Z",
"links": [
{
"rel": "self",
"href": "https://example.epages.com/rs/shops/ExampleShop/script-tags/A348E2BC-F704-4515-868C-5F9E19B4D702"
}
]
}