Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Feature: Scripts provider #2

Open
ashsmith opened this issue Jan 27, 2021 · 0 comments
Open

Feature: Scripts provider #2

ashsmith opened this issue Jan 27, 2021 · 0 comments

Comments

@ashsmith
Copy link
Owner

Get: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/getscript
Create script: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/createscript
Update: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/updatescript
Delete: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/deletescript

Example POST body for a source tag:

{
  "name": "Bootstrap",
  "description": "Build responsive websites",
  "src": "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js",
  "auto_uninstall": true,
  "load_method": "default",
  "location": "footer",
  "visibility": "all_pages",
  "kind": "src"
}

Example POST body for a script

{
  "name": "Bootstrap",
  "description": "Build responsive websites",
  "html": "<script src=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js\\\"></script>",
  "auto_uninstall": true,
  "load_method": "default",
  "location": "footer",
  "visibility": "all_pages",
  "kind": "script_tag"
}

Note not all fields are required

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant