v1
latestSwagger 2.02026-07-17148179252.3 KBScript
Creates a script.
post/content/scripts
Request body
Example request
{
"name": "jQuery",
"description": "The Write Less, Do More, JavaScript Library.",
"src": "https://code.jquery.com/jquery-3.2.1.min.js",
"auto_uninstall": true,
"load_method": "defer",
"location": "head",
"visibility": "storefront",
"kind": "src"
}Response
Success.
Example response
{
"data": {
"uuid": "2bf40be2-e57a-4bc8-860a-5bf45edd3795",
"name": "jQuery",
"description": "The Write Less, Do More, JavaScript Library.",
"src": "https://code.jquery.com/jquery-3.2.1.min.js",
"auto_uninstall": true,
"load_method": "defer",
"location": "head",
"visibility": "storefront",
"kind": "src",
"api_client_id": "d1j42k5q76xsm15fa3g8sp2egytoixo",
"date_created": "2017-12-05T23:37:45.506Z",
"date_modified": "2017-12-05T23:37:45.506Z"
}
}