put https://app.ecwid.com/api/v3//startersite
Allows adding JavaScript code without hosting any external files. Technically is the same as adding JS code to the "Ecwid Control Panel > Website > Custom JavaScript code" section.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | oAuth token with mandatory Bearer before it. Example: Bearer e***s0 , where e***s0 should be replaced with your oAuth token. |
Request
A JSON object with the following fields:
CustomCode
Field | Type | Description |
---|---|---|
customBodyScriptCode | string | Custom script code. Requires HTML script tags. Example: <script>alert(\"added from APIs\")</script> |
Response
A JSON object of type 'storeID' with the following fields:
Field | Type | Description |
---|---|---|
id | number | store ID |