Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 520 Bytes

upsert-snippet-request.md

File metadata and controls

25 lines (16 loc) · 520 Bytes

Upsert Snippet Request

Represents an UpsertSnippet request.

Structure

Upsert Snippet Request

Fields

Name Type Tags Description
snippet Snippet Required Represents the snippet that is added to a Square Online site. The snippet code is injected into the head element of all pages on the site, except for checkout pages.

Example (as JSON)

{
  "snippet": {
    "content": "<script>var js = 1;</script>"
  }
}