Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 875 Bytes

upsert-snippet-response.md

File metadata and controls

30 lines (21 loc) · 875 Bytes

Upsert Snippet Response

Represents an UpsertSnippet response. The response can include either snippet or errors.

Structure

Upsert Snippet Response

Fields

Name Type Tags Description
errors List of Error Optional Any errors that occurred during the request.
snippet Snippet Optional 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>",
    "created_at": "2021-03-11T25:40:09Z",
    "id": "snippet_5d178150-a6c0-11eb-a9f1-437e6a2881e7",
    "site_id": "site_278075276488921835",
    "updated_at": "2021-03-11T25:40:09Z"
  }
}